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

Disassembly:
push 0xffffffffffffffff
push 0x5c2a57
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6385e0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xd4]
mov eax, dword [esi + 4]
mov edx, dword [esi]
test eax, eax
je 0x58a16e
lea ecx, [edx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x58a16e
dec eax
sub ecx, 4
test eax, eax
jne 0x58a161
xor ecx, ecx
test eax, eax
je 0x58a17f
cmp dword [edx + ecx*4], 0
jne 0x58a19d
inc ecx
cmp ecx, eax
jne 0x58a174
lea ecx, [esp + 0x98]
call fcn.0056fee0
push 0x62006c
lea eax, [esp + 0x9c]
push eax
call fcn.00553e2b
push esi
lea ecx, [esp + 0x28]
call fcn.0056ce00
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc8], 0
test ebp, ebp
je 0x58a1cf
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebp*4 - 4]
cmp dword [eax], 0
jne 0x58a1cf
dec ebp
sub eax, 4
test ebp, ebp
jne 0x58a1c2
mov esi, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd0]
cmp esi, ebx
je 0x58a213
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
push edi
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00568b10
mov eax, dword [esi + 4]
cmp edi, eax
jbe 0x58a1fb
mov edi, eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
lea eax, [edi*4]
push eax
push edx
push ecx
call fcn.0054f2c0
add esp, 0xc
mov eax, dword [ebx + 0x10]
push 1
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0056cb10
push 1
lea ecx, [esp + 0x28]
call fcn.0056cb10
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0056c8b0
test eax, eax
jge 0x58a28d
push 0
push 0
lea ecx, [esp + 0x40]
call fcn.0056cd00
mov ebp, dword [esp + 0xd8]
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
mov byte [esp + 0xcc], 1
call fcn.00569af0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x3c]
push edx
mov byte [esp + 0xd0], 0
call eax
jmp 0x58a6fc
jne 0x58a323
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.0056cd00
mov ebp, dword [esp + 0xd8]
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
mov byte [esp + 0xcc], 2
call fcn.00569af0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0xd0], 0
call edx
push 0
push 0
lea ecx, [esp + 0x40]
call fcn.0056cd00
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0xcc], 3
call fcn.00569af0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0xd0], 0
call edx
jmp 0x58a6fc
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], edi
call fcn.0056b160
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + eax*4 - 4]
cmp eax, 0x80000000
jae 0x58a34f
add eax, eax
inc edi
cmp eax, 0x80000000
jb 0x58a341
mov dword [esp + 0x4c], edi
push edi
lea ecx, [esp + 0x28]
call fcn.0058a750
push edi
mov ecx, esi
call fcn.0058a750
mov ecx, esi
call fcn.0056b160
mov ebx, eax
lea eax, [ebp - 1]
mov ebp, dword [esp + 0xd8]
dec ebx
mov edi, ebx
sub edi, eax
lea edx, [edi + 1]
push edx
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.00568b10
cmp ebx, dword [esp + 0x20]
ja 0x58a418
push 1
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.0056c8b0
test eax, eax
jle 0x58a3c9
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0058a9b0
mov ecx, ebp
call fcn.00589f30
push 1
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.0056c8b0
test eax, eax
jg 0x58a3a4
mov eax, dword [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0058a7b0
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
push esi
push ebp
push ecx
push edx
call fcn.0058a030
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add esp, 0x10
add edx, edx
push edx
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0xd0], 0xffffffff
call eax
jmp 0x58a733
mov eax, edi
shl eax, 5
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x20], eax
call fcn.00588590
add esp, 0xc
push 1
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov byte [esp + 0xd0], 4
call fcn.0056c8b0
test eax, eax
jl 0x58a474
mov edi, edi
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0058a9b0
mov eax, dword [ebp]
inc dword [eax + edi*4]
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.0056c8b0
test eax, eax
jge 0x58a450
lea eax, [ebx*4 - 8]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
add edi, edi
add edi, edi
add ebx, 0xffffffe0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 4]
cmp dword [esp + 0x1c], edx
jae 0x58a4ab
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + eax + 8]
mov dword [esp + 0x54], ecx
jmp 0x58a4b7
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, edx
jae 0x58a4d0
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + eax + 4]
mov dword [esp + 0x58], eax
jmp 0x58a4d8
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x28]
jae 0x58a4ef
mov edx, dword [esp + 0x24]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x50], eax
jmp 0x58a4fb
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
cmp ecx, eax
jne 0x58a50c
mov eax, dword [ebp]
mov dword [edi + eax - 4], 0xffffffff
jmp 0x58a526
mov ebx, dword [ebp]
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
call fcn.0058b3b0
mov dword [edi + ebx - 4], eax
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
cmp eax, dword [esi + 4]
jae 0x58a53d
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax]
jmp 0x58a53f
xor edx, edx
mov eax, dword [esp + 0x20]
dec eax
cmp eax, dword [esp + 0x28]
jae 0x58a553
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + eax*4]
jmp 0x58a555
xor ecx, ecx
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [edi + eax - 4]
push ecx
mov ecx, dword [esp + 0x60]
push ecx
push edx
call fcn.0058b2d0
add esp, 0x18
test eax, eax
mov eax, dword [ebp]
je 0x58a587
dec dword [edi + eax - 4]
lea eax, [edi + eax - 4]
jmp 0x58a526
mov ecx, dword [edi + eax - 4]
push 0
push ecx
lea ecx, [esp + 0x64]
call fcn.0056cd00
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0xd4], 5
call fcn.005887a0
push ebx
push eax
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0xe0], 6
call fcn.00588590
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0xcc], 7
call fcn.0058a9b0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x88]
push edx
mov byte [esp + 0xd0], 6
call eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x9c]
push eax
mov byte [esp + 0xd0], 5
call edx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x60]
push edx
mov byte [esp + 0xd0], 4
call eax
cmp dword [esi + 0x10], 0
jne 0x58a6a6
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00588590
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xcc], 8
call fcn.0058a830
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x74]
push edx
mov byte [esp + 0xd0], 4
call eax
mov eax, dword [ebp]
dec dword [edi + eax - 4]
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], 4
dec eax
sub ebx, 0x20
sub edi, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, dword [esp + 0x20]
jne 0x58a492
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0058a7b0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0xd0], 0
call edx
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
push esi
push ebp
push eax
push ebx
call fcn.0058a030
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add esp, 0x10
add eax, eax
push eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0xd0], 0xffffffff
call edx
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret