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

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x48]
push edi
shl eax, 5
push eax
push ecx
call fcn.0056d896
mov edx, dword [esi + 0x34]
shl edx, 4
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x4c]
push edx
push eax
call fcn.0056d896
mov ecx, dword [esi + 0x34]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
mov dword [esi + 0x4c], eax
call fcn.005608c6
mov edx, dword [esi + 0x34]
shl edx, 4
push edx
mov dword [esi + 0x3c], eax
call fcn.005608c6
xor ebx, ebx
add esp, 0x18
xor edi, edi
cmp dword [esi + 0x34], ebx
mov dword [esi + 0x44], eax
jle 0x589708
push ebp
jmp 0x589484
xor ebx, ebx
cmp edi, ebx
jne 0x5894a6
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [eax], edx
push ecx
mov dword [eax + 4], ecx
push edx
mov eax, esi
call fcn.00588eb0
add esp, 8
jmp 0x5894fd
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [eax + edi*8]
push ecx
push edx
mov eax, esi
call fcn.00588eb0
mov eax, edi
shl eax, 4
add eax, dword [esi + 0x4c]
mov ecx, edi
shl ecx, 5
add ecx, dword [esi + 0x48]
push ebx
push eax
push ecx
xor eax, eax
mov ecx, esi
call fcn.005892e0
add esp, 0x14
test eax, eax
mov eax, dword [esi + 0x3c]
jge 0x5894f0
mov dword [eax + edi*8], 0xffffffff
mov dword [eax + edi*8 + 4], 0xffffffff
jmp 0x5894fd
mov edx, dword [esi + 8]
mov dword [eax + edi*8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + edi*8]
and edx, dword [eax + edi*8 + 4]
cmp edx, 0xffffffff
je 0x58964b
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + edi*4]
push ecx
lea ebp, [esi + 0x78]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push ebp
or ebx, 0xffffffff
call fcn.005e8c80
push ebx
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00588ef0
add esp, 0x14
test edx, edx
jl 0x589634
jg 0x589550
test eax, eax
jb 0x589634
lea esp, [esp]
lea eax, [esp + 0x18]
push eax
call fcn.005e83f0
mov ecx, dword [esi + 0x40]
add esp, 4
cmp eax, dword [ecx + edi*4]
jne 0x58961c
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.005e8980
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.005e8db0
add esp, 0x10
test eax, eax
je 0x5895c8
jle 0x5895b6
mov edx, edi
shl edx, 5
add edx, dword [esi + 0x48]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.005e98c0
add esp, 8
cmp ebx, 0xffffffff
mov ecx, eax
je 0x5895b4
lea eax, [ecx + ebx]
sar eax, 2
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
mov ebx, ecx
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.005e8db0
add esp, 8
test eax, eax
jne 0x589586
lea ecx, [esp + 0x18]
push ecx
call fcn.005e8360
and eax, edx
add esp, 4
cmp eax, 0xffffffff
jne 0x5895ff
push eax
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00588ef0
add esp, 0xc
test edx, edx
jg 0x589550
jl 0x58961c
test eax, eax
jae 0x589550
jmp 0x58961c
lea eax, [esp + 0x18]
push eax
call fcn.005e8360
add esp, 4
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
cmp dword [esp + 0x14], eax
jg 0x589634
jl 0x58962c
cmp dword [esp + 0x10], eax
jae 0x589634
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x10]
mov eax, edi
shl eax, 4
mov dword [eax + ecx], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx + 4], edx
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + edi*8 + 0xc]
mov edx, dword [eax + edi*8 + 8]
push ecx
push edx
mov eax, esi
call fcn.00588eb0
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.00588fa0
mov ebx, edx
add esp, 0xc
test ebx, ebx
mov ebp, eax
jl 0x5896b7
jg 0x589680
test ebp, ebp
jb 0x5896b7
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
call fcn.005e8360
and eax, edx
add esp, 4
cmp eax, 0xffffffff
jne 0x5896d8
lea edx, [esp + 0x18]
push edx
mov eax, esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
call fcn.00588fa0
mov ebx, edx
add esp, 4
test ebx, ebx
mov ebp, eax
jg 0x589680
jl 0x5896b7
test ebp, ebp
jae 0x589680
mov eax, edi
shl eax, 5
add eax, dword [esi + 0x48]
push eax
call fcn.005e8f10
mov ecx, edi
shl ecx, 4
add ecx, dword [esi + 0x4c]
push ecx
call fcn.005e8e40
add esp, 8
jmp 0x5896fb
mov eax, dword [esi + 0x44]
mov edx, edi
lea ecx, [esp + 0x18]
shl edx, 4
push ecx
lea ebx, [edx + eax]
call fcn.005e8360
add esp, 4
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
add edi, 1
cmp edi, dword [esi + 0x34]
jl 0x589482
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x38
ret