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

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [eax + 0xc], edx
call fcn.00458cb0
mov ecx, dword [ebx + 0x3f8]
sub ecx, dword [ebx + 0x4d0]
mov esi, dword [ebx + 0x3f0]
mov edx, dword [ebx + 0x3f4]
mov eax, dword [ebx + 0x3fc]
add esi, dword [ebx + 0x4c8]
add edx, dword [ebx + 0x4cc]
sub eax, dword [ebx + 0x4d4]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x4e0]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
je 0x492836
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x492836
mov ecx, dword [ebx + 0x4e0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
call edx
sub dword [esp + 0x78], eax
mov ecx, dword [ebx + 0x4e4]
cmp ecx, ebp
je 0x492862
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x492862
mov ecx, dword [ebx + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe4]
call edx
sub dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x4b8]
cmp eax, ebp
je 0x492879
mov ecx, dword [ebx + 0x4bc]
sub ecx, eax
sar ecx, 2
jne 0x492880
push ebp
push ebp
jmp 0x492b4b
mov ecx, dword [ebx + 0x4e0]
cmp ecx, ebp
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c], edi
je 0x4928c0
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x4928c0
mov eax, dword [ebx + 0x4e0]
sub esi, dword [eax + 0x4bc]
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x4e4]
cmp ecx, ebp
je 0x4928e8
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x4928e8
mov ecx, dword [ebx + 0x4e4]
sub edi, dword [ecx + 0x4bc]
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
sub esi, dword [esp + 0x74]
mov ecx, dword [ebx + 0x4e4]
cmp ecx, ebp
mov edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
je 0x492932
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x492932
mov ecx, dword [ebx + 0x4e4]
add edi, dword [ecx + 0x4b8]
mov dword [esp + 0x40], edi
mov ecx, dword [ebx + 0x4e0]
cmp ecx, ebp
je 0x49295a
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x49295a
mov ecx, dword [ebx + 0x4e0]
add esi, dword [ecx + 0x4b8]
mov dword [esp + 0x44], esi
xor esi, esi
mov ecx, dword [ebx + 0x4b8]
test ecx, ecx
mov dword [esp + 0x18], esi
je 0x492b41
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x492b41
test ecx, ecx
je 0x492994
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x492999
call fcn.004ab591
mov edx, dword [ebx + 0x4b8]
mov ebp, dword [edx + esi*4]
mov eax, dword [ebp]
mov edx, dword [eax + 0xcc]
mov ecx, ebp
call edx
test al, al
je 0x492b35
mov eax, dword [ebp]
mov edx, dword [eax + 0x130]
mov ecx, ebp
call edx
test al, al
jne 0x492b23
mov eax, dword [ebp]
mov edx, dword [eax + 0x140]
mov ecx, ebp
call edx
test al, al
jne 0x492b23
mov eax, dword [ebp]
mov edx, dword [eax + 0x138]
mov ecx, ebp
call edx
test al, al
jne 0x492b23
mov eax, dword [ebp]
mov edx, dword [eax + 0x94]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp]
push ecx
push edx
mov edx, dword [eax + 0x9c]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call edx
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x492a36
mov edx, edi
sub edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x3c]
test edi, edi
mov ecx, dword [esp + 0x4c]
jne 0x492a50
mov edi, dword [esp + 0x44]
sub edi, ecx
sub edi, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
test byte [ebp + 0x324], 0x10
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
je 0x492a78
mov eax, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x6c], eax
test byte [ebp + 0x324], 0x20
je 0x492a90
mov eax, dword [esp + 0x34]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
add edx, esi
add esi, eax
add esi, dword [esp + 0x6c]
add edi, ecx
mov ecx, dword [esp + 0x5c]
add edi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc0]
mov ecx, ebp
call edx
sub esi, dword [esp + 0x58]
cmp dword [esp + 0x20], esi
jg 0x492ae7
mov dword [esp + 0x20], esi
sub edi, dword [esp + 0x5c]
cmp dword [esp + 0x1c], edi
jg 0x492af5
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x324]
test al, 0x10
je 0x492b07
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
test al, 0x20
mov esi, dword [esp + 0x18]
je 0x492b35
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], edx
add esi, 1
jmp 0x49295c
mov eax, dword [ebx]
mov edx, dword [eax + 0x2b8]
lea ecx, [esp + 0x70]
push ecx
push ebp
mov ecx, ebx
call edx
mov edi, dword [esp + 0x40]
add esi, 1
jmp 0x49295c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14