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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5fa5d8]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0xc8
mov dword [ebp - 8], eax
call fcn.0043d470
mov edx, dword [0x4794ec]
mov ebx, eax
mov ecx, 0x32
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [0x4794e8]
xor edi, edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
mov edx, 0x488da0
mov ecx, ebx
mov dword [ebx + 4], 0x29
mov dword [ebx], 0x488dd8
mov dword [ebx + 8], edi
call fcn.0043c860
test eax, eax
jne 0x4597fa
mov ecx, ebx
call fcn.0043d4c0
mov dword [esi + 0x14], edi
jmp 0x4597fd
mov dword [esi + 0x14], ebx
mov ebx, dword [esi + 0x14]
push edi
mov edx, 0x18
mov ecx, ebx
call dword [ebx + 0x10]
mov edx, 0x16
mov ecx, ebx
push edi
call dword [ebx + 0x10]
mov eax, dword [0x5fa6a0]
mov edx, dword [0x5fa6b0]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov ecx, dword [eax*4 + 0x5f9be8]
mov eax, 1
mov dword [esi + 0x30], ecx
mov ecx, dword [0x5fa6a4]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x34], edx
mov eax, 0x5fa6bc
cmp dword [eax - 4], ecx
jge 0x459861
mov dword [esi + 0x48], edi
mov ebx, dword [eax]
cmp ebx, dword [0x5fa6a8]
jge 0x45986e
mov dword [esi + 0x4c], edi
mov ebx, dword [0x5fa6ac]
cmp dword [eax + 4], ebx
jle 0x45987c
mov dword [esi + 0x50], edi
cmp dword [eax + 8], edx
jle 0x459884
mov dword [esi + 0x54], edi
add eax, 0x14
cmp eax, 0x5fa720
jl 0x459859
mov eax, dword [ebp - 8]
push ecx
shl eax, 5
mov edi, eax
mov edx, 0x5fa5e0
lea ecx, [edi + 0x5df674]
call fcn.00437d60
test eax, eax
mov ebx, 2
je 0x4598b3
mov dword [esi + 0x48], ebx
mov edx, dword [0x5fa6a8]
lea ecx, [edi + 0x5df67c]
push edx
mov edx, 0x5fa5e0
call fcn.00437d60
test eax, eax
je 0x4598d1
mov dword [esi + 0x4c], ebx
mov eax, dword [0x5fa6ac]
mov edx, 0x5fa5e0
push eax
lea ecx, [edi + 0x5df684]
call fcn.00437d20
test eax, eax
je 0x4598ee
mov dword [esi + 0x50], ebx
mov ecx, dword [0x5fa6b0]
mov edx, 0x5fa5e0
push ecx
lea ecx, [edi + 0x5df68c]
call fcn.00437d20
test eax, eax
je 0x45990c
mov dword [esi + 0x54], ebx
mov ecx, dword [esi + 0x48]
call fcn.00459a00
mov ecx, dword [esi + 0x4c]
mov ebx, eax
mov dword [esi + 0x38], ebx
call fcn.00459a00
mov ecx, dword [esi + 0x50]
mov edi, eax
mov dword [esi + 0x3c], edi
call fcn.00459a00
mov ecx, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov dword [esi + 0x40], eax
call fcn.00459a00
mov edx, dword [esi + 0x34]
mov dword [esi + 0x44], eax
mov ecx, dword [0x5e37ac]
add edx, eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x28], ecx
add edx, eax
add edx, edi
mov edi, dword [esi + 0x30]
add edx, ebx
add edx, edi
add ecx, edx
xor edx, edx
mov dword [0x5e37ac], ecx
xor eax, eax
lea ecx, [esi + 0x58]
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, 6
jl 0x45996a
mov ecx, 5
mov dword [ebp - 8], ecx
cmp ecx, edx
jle 0x4599b8
lea eax, [esi + 0x5c]
mov dword [ebp - 4], ecx
mov edx, dword [eax - 4]
mov ecx, dword [eax]
lea ebx, [edx + edx*4]
lea edi, [ecx + ecx*4]
mov ebx, dword [ebx*4 + 0x5fa6a0]
cmp ebx, dword [edi*4 + 0x5fa6a0]
jle 0x4599a7
mov dword [eax - 4], ecx
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add eax, 4
dec ecx
mov dword [ebp - 4], ecx
jne 0x459987
mov ecx, dword [ebp - 8]
xor edx, edx
dec ecx
mov dword [ebp - 8], ecx
jns 0x45997d
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], edx
lea eax, [esi + 0xa0]
mov ecx, 8
mov dword [eax - 0x20], edx
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4599cf
cmp dword [esi + 0x48], edx
je 0x4599e2
inc dword [esi + 0x7c]
cmp dword [esi + 0x4c], edx
je 0x4599ea
inc dword [esi + 0x7c]
cmp dword [esi + 0x54], edx
je 0x4599f2
inc dword [esi + 0x7c]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret