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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [esp + 0xc], ecx
cmp dword [ecx + 0x58], 0
je 0x589c58
push ebx
call fcn.005890d0
add esp, 4
jmp 0x589eac
mov edi, dword [ebx]
mov ebx, ecx
mov dword [esp + 0x10], edi
push ebp
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0x20]
cmp eax, str.nth_value
je 0x589ed4
cmp eax, str.first_value
je 0x589ed4
cmp eax, str.lead
je 0x589c93
cmp eax, 0x5c1728
jne 0x589e9c
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
mov eax, dword [ebx + 0x3c]
dec dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x20], eax
mov al, byte [edi + 0x13]
mov dword [esp + 0x28], edx
test al, al
jne 0x589cbf
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x589cce
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebp, dword [edi + eax*4 + 0x98]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x24], ecx
push dword [ebx + 0x38]
cmp edx, 3
jge 0x589cec
push 0
push 0x4a
push esi
call fcn.00560d50
add esp, 0x10
jmp 0x589cff
mov eax, dword [ebx + 0x50]
add eax, 2
push eax
push ecx
push 0x5d
push esi
call fcn.00560db0
add esp, 0x14
push ebp
push dword [esp + 0x28]
push 0x86
push esi
call fcn.00560d50
mov ecx, dword [esp + 0x2c]
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x28], 2
jge 0x589d3f
cmp dword [ecx + 0x20], str.lead
sete al
lea eax, [eax*2 - 1]
push eax
push ebp
push 0x55
push esi
call fcn.00560d50
add esp, 0x10
jmp 0x589db3
cmp dword [ecx + 0x20], str.lead
setne al
add eax, 0x6a
mov dword [esp + 0x28], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x589d5f
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x589d6e
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x50]
inc eax
push eax
push dword [esp + 0x2c]
push 0x5d
push esi
call fcn.00560db0
push ebp
push ebp
push dword [esp + 0x38]
push dword [esp + 0x48]
push esi
call fcn.00560db0
mov ecx, dword [esp + 0x44]
add esp, 0x28
test ecx, ecx
je 0x589db3
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x589db3
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x589dd2
mov edx, dword [esp + 0x20]
push ebp
push edx
push dword [esp + 0x20]
push 0x20
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589e01
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov eax, dword [ebx + 0x50]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], ecx
jg 0x589e26
push edx
push eax
push dword [esp + 0x20]
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589e59
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x20]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x589e77
push edx
push esi
push ecx
call fcn.005278f0
add esp, 0xc
jmp 0x589e80
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x10]
test ebp, ebp
je 0x589e9c
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x589e9c
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebp
inc byte [edi + 0x13]
mov ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x589c61
mov ebx, dword [esp + 0x30]
pop ebp
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp dword [esi + 0x78], ecx
jg 0x58a0ed
push 0
push edx
push edi
push 0xc
push esi
call fcn.00515850
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0x3c]
dec dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x20], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x589ef4
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x589f03
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebp, dword [edi + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x38]
cmp dword [esi + 0x78], ecx
jg 0x589f20
push 0
push edx
push 0
push 0x4a
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589f53
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x20], 0x5c1708
mov ecx, dword [esi + 0x74]
jne 0x589fd3
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x50]
inc edx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], ecx
jg 0x589f96
push ebp
push edx
push eax
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
push 2
push ebp
push edi
call fcn.00588480
add esp, 0xc
jmp 0x58a019
mov edi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
push 2
push ebp
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
push edi
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
call fcn.00588480
add esp, 0xc
jmp 0x58a019
cmp dword [esi + 0x78], ecx
jg 0x589fea
push 0
push ebp
push 1
push 0x47
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58a019
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x58a034
push ebp
push edx
push ebp
push 0x6a
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58a05f
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x6a
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x58a07e
push ebp
push dword [esp + 0x24]
push edx
push 0x36
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58a0ad
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x36
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x58a0cc
push ebp
push 0
push dword [esp + 0x20]
push 0x20
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589e01
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
jmp 0x589dee
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
pop edi
pop esi
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop ebx
add esp, 0x1c
ret