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

Disassembly:
mov ecx, dword [0x78bd58]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58dcc5
sub esp, 0x50
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x5c]
jmp 0x58d8d5
lea eax, [eax + edi*8 + 4]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
mov esi, eax
test edi, edi
je 0x58dc64
mov ecx, dword [ebx + 4]
cmp edi, ecx
jae 0x58dcbd
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov ecx, dword [ebx + 0x10]
cmp ecx, eax
jbe 0x58d902
mov edx, dword [ebx + 0xc]
lea eax, [edx + eax*8]
cmp dword [eax], edi
je 0x58d9b1
mov edx, dword [ebx + 0x14]
lea eax, [ecx + 1]
cmp edx, eax
jb 0x58dcb6
mov dword [ebx + 0x10], eax
cmp ecx, eax
jae 0x58dcab
mov dword [esp + 0x4c], esi
mov eax, dword [ebx + 0xc]
mov edx, dword [0x78be40]
lea esi, [eax + ecx*8 + 4]
lea eax, [eax + ecx*8]
test edx, edx
je 0x58d944
mov dword [esp + 0x34], edi
mov edx, dword [esi]
call fcn.0046fee0
mov dword [edi], edx
mov edi, dword [esp + 0x34]
mov dword [esi], 0
mov dword [eax], edi
mov eax, dword [ebx + 4]
cmp edi, eax
jae 0x58dca2
mov eax, dword [ebx]
mov dword [eax + edi*4], ecx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
cmp edi, ecx
jae 0x58dc9b
mov eax, dword [eax]
lea edi, [edi + edi*2]
lea ecx, [eax + edi*8]
movzx ecx, byte [ecx]
lea edx, [eax + edi*8]
cmp cl, 3
ja 0x58daf1
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], eax
cmp cl, 1
jbe 0x58da88
cmp cl, 2
jne 0x58da35
lea esi, [eax + edi*8 + 8]
mov ecx, dword [esi]
mov edx, esi
mov esi, dword [esp + 0x68]
cmp esi, ecx
jle 0x58d8c9
jmp 0x58d9b9
mov dword [esp + 0x78], esi
add esp, 0x50
ret
jbe 0x58dc92
mov dword [esp + 0x44], edx
lea eax, [eax + edi*8 + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [edx + ecx*4]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x60]
mov dword [edx + ecx*4], edi
mov eax, dword [eax]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0058d8a0
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jbe 0x58dc8d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x4c]
jmp 0x58dc5c
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
lea ebp, [eax + edi*8 + 8]
mov ebp, dword [ebp]
mov dword [esp], edx
mov dword [esp + 4], ebx
xchg ebp, eax
mov byte [esp + 8], al
xchg ebp, eax
call fcn.0058cda0
movzx eax, byte [esp + 0xc]
test al, al
je 0x58da7f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
lea eax, [ecx + eax*8 + 4]
mov edi, dword [eax]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
jmp 0x58d8d5
mov eax, dword [esp + 0x4c]
jmp 0x58dc5c
lea ecx, [eax + edi*8 + 4]
mov ecx, dword [ecx]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
call fcn.0058d8a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
lea eax, [ecx + eax*8 + 8]
mov esi, dword [esp + 0x24]
mov edi, dword [eax]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov ebp, ecx
jmp 0x58d8d5
cmp cl, 5
jbe 0x58db14
cmp cl, 6
jne 0x58db0a
lea eax, [eax + edi*8 + 4]
mov edi, dword [eax]
mov esi, dword [esp + 0x4c]
jmp 0x58d8d5
cmp cl, 0xa
jbe 0x58db1d
jmp 0x58dc75
cmp cl, 4
jne 0x58dc58
mov dword [esp + 0x40], esi
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x58db46
mov ebp, dword [0x78be40]
test ebp, ebp
je 0x58db3f
call fcn.0046fef0
mov dword [edi], edx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], edx
jmp 0x58dbf5
mov ebx, dword [ebp + 0x3c]
nop
test ebx, ebx
je 0x58db5d
mov edi, dword [ebp + 0x38]
lea eax, [ebx - 1]
mov ebx, dword [edi + ebx*4 - 4]
mov dword [ebp + 0x3c], eax
jmp 0x58dbdb
mov dword [esp + 0x3c], edx
lea eax, [0x5be780]
mov dword [esp], eax
call fcn.00410f90
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x4c]
mov dword [esp + 0x30], edx
mov ecx, dword [ecx + 0x50]
mov dword [esp + 0x2c], ecx
lea ebx, [0x5b2080]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00454420
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x78be40]
test ecx, ecx
je 0x58dbcc
call fcn.0046fef0
mov dword [edi], eax
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov dword [edx + 4], eax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
test byte [ebx], al
mov ebp, dword [0x78be40]
test ebp, ebp
je 0x58dbf3
call fcn.0046fef0
mov dword [edi], edx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], edx
mov edx, dword [esp + 0x68]
test edx, edx
je 0x58dc3c
mov ebp, dword [ebx + 8]
test ebp, ebp
jbe 0x58dc6c
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
je 0x58dc3c
cmp edx, ebp
jge 0x58dc17
cmp ecx, eax
jmp 0x58dc1b
cmp ecx, eax
mov edx, ebp
je 0x58dc3c
mov dword [esp + 0x4c], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
shl edx, 2
mov dword [esp + 8], edx
call fcn.00470810
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov eax, dword [0x78be40]
test eax, eax
je 0x58dc52
call fcn.0046fef0
mov dword [edi], ebx
mov eax, dword [esi]
mov dword [edi + 4], eax
mov dword [esi], ebx
xor eax, eax
jmp 0x58dc5c
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov dword [esp + 0x78], esi
add esp, 0x50
ret
xor eax, eax
mov ecx, eax
call fcn.0046ff60
lea eax, [0x5b1e40]
mov dword [esp], eax
lea eax, [0x621cf8]
mov dword [esp + 4], eax
call fcn.0043d570
call fcn.0046ff70
mov eax, ecx
mov ecx, esi
call fcn.0046ff70
mov eax, edi
call fcn.0046ff70
mov ecx, eax
mov eax, edi
call fcn.0046ff70
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.0046ff60
mov ecx, eax
call fcn.0046ffa0
mov eax, edi
call fcn.0046ff70
nop
call fcn.0046eae0
jmp fcn.0058d8a0