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

Disassembly:
sub esp, 0x24
push ebx
xor eax, eax
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
movzx eax, cx
push edi
cdq
mov edi, 0xa
idiv edi
mov ebp, eax
cmp ebp, 3
mov dword [esp + 0x24], ebp
jbe 0x459abd
mov dword [esp + 0x24], 0xffffffff
mov ebx, dword [esp + 0x3c]
movzx eax, dx
mov dword [esp + 0x30], eax
movzx eax, bx
cdq
idiv edi
mov edi, eax
cmp edi, 3
mov dword [esp + 0x20], edi
jbe 0x459ae1
mov dword [esp + 0x20], 0xffffffff
lea eax, [esp + 0x10]
movzx edx, dx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.00458800
test eax, eax
jne 0x459b05
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0xc
cmp edi, 3
jbe 0x459b0d
or edi, 0xffffffff
cmp ebp, 3
jbe 0x459b15
or ebp, 0xffffffff
movzx ecx, di
cmp ecx, ebp
je 0x459b86
lea edx, [edi + edi*4]
add edx, edx
movzx edi, dx
mov dword [esp + 0x3c], 0xa
lea esp, [esp]
push edi
mov ecx, esi
call fcn.004589e0
test eax, eax
je 0x459b7c
mov ecx, dword [eax + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
mov ebp, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
cmp ebp, eax
jne 0x459b7c
lea ecx, [esp + 0x28]
push ecx
push edi
mov ecx, esi
call fcn.00458800
mov edx, dword [esp + 0x28]
push edx
mov ecx, 0x649ac0
call fcn.004afe30
add edi, 1
sub dword [esp + 0x3c], 1
jne 0x459b30
lea eax, [esp + 0x14]
push eax
push ebx
mov ecx, esi
call fcn.00458800
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
mov edx, dword [esp + 0x2c]
movzx ecx, ax
mov eax, dword [esp + 0x20]
add edx, 1
push edx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004af0a0
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x330]
mov eax, dword [ecx]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x88]
add esp, 0xc
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push ebx
call eax
mov ecx, dword [esp + 0x10]
push ecx
push ebx
mov ecx, esi
call fcn.00459a10
test eax, eax
je 0x459af9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x459ca4
cmp byte [esp + 0x40], 0
je 0x459c32
push eax
mov ecx, 0x649ac0
call fcn.004afe30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0xc
mov ecx, dword [eax + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
mov edx, dword [esp + 0x30]
movzx ecx, ax
mov eax, dword [esp + 0x24]
add edx, 1
push edx
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004af0a0
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x330]
mov eax, dword [ecx]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 0x88]
add esp, 0xc
push edx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edi, dword [esp + 0x38]
mov eax, dword [edx + 0x80]
push edi
call eax
mov ecx, dword [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00459a10
test eax, eax
je 0x459af9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0xc