Function at 0x499b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea09d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51a744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebx + 0x78]
mov dword [ebp - 4], 0xe
test ecx, ecx
je 0x499bfb
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
cmp esi, edi
je 0x499bf6
jmp 0x499be0
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x499bef
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, edi
jne 0x499be0
lea ecx, [ebx + 0x78]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x94]
xor esi, esi
sub eax, dword [ebx + 0x90]
sar eax, 2
test eax, eax
je 0x499c35
mov eax, dword [ebx + 0x90]
push dword [eax + esi*4]
call fcn.0045a55b
mov eax, dword [ebx + 0x94]
inc esi
sub eax, dword [ebx + 0x90]
add esp, 4
sar eax, 2
cmp esi, eax
jb 0x499c10
lea edi, [ebx + 0x6c]
test edi, edi
je 0x499c4e
push dword [edi + 4]
push dword [edi]
call fcn.00496170
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
lea esi, [ebx + 0x84]
test esi, esi
je 0x499c6a
push dword [esi + 4]
push dword [esi]
call fcn.004961d0
mov eax, dword [esi]
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x499c9b
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov eax, dword [ebx + 0xfc]
test eax, eax
je 0x499ccc
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0xfc], 0
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x104], 0
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x499cfd
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x499d2e
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov eax, dword [ebx + 0xdc]
lea ecx, [ebx + 0xdc]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004dbab0
push dword [ebx + 0xdc]
call fcn.0045a55b
mov eax, dword [ebx + 0xc4]
add esp, 4
test eax, eax
je 0x499d85
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov eax, dword [ebx + 0xbc]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0xbc]
mov dword [eax + 4], eax
mov dword [ebx + 0xc0], 0
cmp ecx, dword [ebx + 0xbc]
je 0x499dc5
lea ebx, [ebx]
mov esi, dword [ecx]
push ecx
call fcn.0045a55b
add esp, 4
mov ecx, esi
cmp esi, dword [ebx + 0xbc]
jne 0x499db0
push dword [ebx + 0xbc]
call fcn.0045a55b
mov eax, dword [ebx + 0xa4]
add esp, 4
test eax, eax
je 0x499e04
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x9c]
mov dword [eax + 4], eax
mov dword [ebx + 0xa0], 0
cmp ecx, dword [ebx + 0x9c]
je 0x499e45
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.0045a55b
add esp, 4
mov ecx, esi
cmp esi, dword [ebx + 0x9c]
jne 0x499e30
push dword [ebx + 0x9c]
call fcn.0045a55b
mov eax, dword [ebx + 0x90]
add esp, 4
test eax, eax
je 0x499e84
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x499eb5
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x499edd
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov eax, dword [edi]
test eax, eax
je 0x499f00
push eax
call fcn.0045a55b
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x499f25
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov eax, dword [ebx + 0x4c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x4c]
mov dword [eax + 4], eax
mov dword [ebx + 0x50], 0
cmp ecx, dword [ebx + 0x4c]
je 0x499f52
mov edi, edi
mov esi, dword [ecx]
push ecx
call fcn.0045a55b
add esp, 4
mov ecx, esi
cmp esi, dword [ebx + 0x4c]
jne 0x499f40
push dword [ebx + 0x4c]
call fcn.0045a55b
mov eax, dword [ebx + 0x34]
add esp, 4
test eax, eax
je 0x499f82
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
lea ecx, [ebx + 0x2c]
call fcn.004aaee0
push dword [ebx + 0x2c]
call fcn.0045a55b
mov eax, dword [ebx + 0x14]
add esp, 4
test eax, eax
je 0x499fba
push eax
call fcn.0045a55b
add esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
lea ecx, [ebx + 0xc]
call fcn.004aaee0
push dword [ebx + 0xc]
call fcn.0045a55b
mov esi, dword [ebx]
add esp, 4
test esi, esi
je 0x49a026
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x49a008
lea ebx, [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x499ff0
push dword [esi]
call fcn.0045a55b
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x499fe0
push dword [ebx]
call fcn.0045a55b
add esp, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret