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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test eax, eax
je 0x58910d
mov ebp, dword [eax]
jmp 0x58910f
xor ebp, ebp
mov eax, dword [edi + 0x38]
dec eax
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x2c], eax
mov dword [edi + 0x38], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x589132
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x18], ecx
jmp 0x589145
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x18], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x589154
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x589163
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x589184
push ebp
push edi
call fcn.00549730
push ebp
push edi
mov dword [esp + 0x34], eax
call fcn.00549730
add esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x30]
cmp dword [esi + 0x78], ecx
jg 0x5891a6
push 0
push dword [esp + 0x1c]
push edx
push 0x86
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5891d5
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 + 0x18]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x24]
push dword [ebx + 0x30]
push dword [esp + 0x44]
call fcn.00589b20
add esp, 0xc
jmp 0x5891f0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x58920d
push 0
push edx
push 0
push 0x4a
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58923c
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 ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x5891f0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x58]
cmp dword [esi + 0x78], ecx
jg 0x589268
push edx
push dword [esp + 0x30]
push dword [esp + 0x1c]
push 0x19
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58929b
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], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x19
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x78], ecx
jg 0x5892c2
mov edx, dword [esp + 0x10]
push 0
push edx
push dword [esp + 0x1c]
push 0x86
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5892f5
mov edx, 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 + 0x10]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x5c]
cmp dword [esi + 0x78], ecx
jg 0x58931a
push dword [esp + 0x10]
push dword [esp + 0x30]
push edx
push 0x36
push esi
call fcn.00515850
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x58934d
mov edi, dword [esp + 0x30]
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 + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x36
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [ebx + 0x14]
cmp al, 0x55
jne 0x5893ad
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x589375
push edx
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x35
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58958b
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 + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x58958b
cmp al, 0x42
je 0x58958b
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5893d6
push ebx
push ebx
push eax
push edi
call fcn.0054ca10
add esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x14], 0x5e
jne 0x589434
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x78], ebx
jg 0x589401
push dword [esp + 0x10]
push 0
push dword [esp + 0x20]
push 0x35
push esi
call fcn.00515850
add esp, 0x14
mov ebx, eax
jmp 0x589434
mov edx, dword [esp + 0x18]
lea eax, [ebx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x2c], 0
je 0x589510
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.00589b20
mov ecx, dword [esi + 0x74]
add esp, 0xc
cmp dword [esi + 0x78], ecx
jg 0x589471
push ebp
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x59
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5894a0
mov edx, dword [esp + 0x20]
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 + 0x24]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
cmp byte [eax + 0x57], 0
je 0x5894ba
push edx
push 0xfffffffffffffff7
push eax
call fcn.00502620
add esp, 0xc
jmp 0x5894cc
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
lea edx, [eax + 1]
cmp dword [esi + 0x78], eax
jg 0x5894ea
push edx
push dword [esp + 0x20]
push edx
push 0x10
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589560
mov edi, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edx
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x589558
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x58952d
push 0
push dword [esp + 0x20]
push 0
push 0xb
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589560
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
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
test ebx, ebx
je 0x589587
mov edx, dword [esi + 0x74]
jns 0x58956c
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x58957b
mov eax, 0x973eec
jmp 0x589584
mov eax, dword [esi + 0x70]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
push dword [eax + 0x14]
push 0
push dword [esp + 0x1c]
push ebx
push eax
call fcn.00587c20
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5895c0
push edx
push esi
push ecx
call fcn.005278f0
add esp, 0xc
jmp 0x5895c9
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x5895e9
push 0
push ebx
push dword [esp + 0x1c]
push 5
push esi
call fcn.00515850
add esp, 0x14
jmp 0x589618
mov edx, 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], 5
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [ebx - 1]
test ecx, ecx
jns 0x589625
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x589634
mov eax, 0x973eec
jmp 0x58963d
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [ebx + 1]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x58964d
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x58965c
mov eax, 0x973eec
jmp 0x589665
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], edx
test ecx, ecx
je 0x589684
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x589684
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5896a0
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5896a0
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
test ebp, ebp
je 0x589700
cmp ebp, 1
jne 0x5896e3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x5896c5
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5896c5
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x589700
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x589700
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
jmp 0x589700
cmp ebp, dword [edi + 0x1c]
jle 0x589700
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
cmp ebp, ebp
jle 0x589700
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
push 1
push dword [esp + 0x40]
call fcn.005878e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret