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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x58d970
sub esp, 0xb4
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x58d8fa
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0x24]
mov ebp, dword [eax + 0x20]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0058cd30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x58d881
mov eax, dword [esp + 0xb8]
mov dword [eax + 4], ecx
mov ecx, dword [0x728500]
test ecx, ecx
jne 0x58d869
mov dword [eax], ebx
mov ecx, dword [eax + 0x50]
lea ebx, [eax + 0x50]
test ecx, ecx
jne 0x58d807
mov dword [esp + 0x78], ebx
mov ecx, dword [eax + 0x58]
mov ebp, dword [eax + 0x5c]
test ecx, ecx
jne 0x58d754
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea ecx, [0x6091a8]
mov dword [esp + 0x84], ecx
lea ecx, [0x6091ac]
mov dword [esp + 0x88], ecx
lea ecx, [0x6091a4]
mov dword [esp + 0x8c], ecx
xor ecx, ecx
lea edx, [esp + 0x84]
jmp 0x58d167
mov ebp, dword [esp + 0x74]
lea edx, [ebp + 4]
mov ebp, dword [esp + 0x38]
inc ebp
mov eax, ecx
mov ebx, dword [esp + 0x78]
mov ecx, ebp
cmp ecx, 3
jge 0x58d2e2
mov dword [esp + 0x38], ecx
mov dword [esp + 0x74], edx
mov ecx, dword [edx]
mov dword [esp], eax
mov ebx, dword [ecx]
mov edx, ecx
call ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test ecx, ecx
jne 0x58d269
mov ecx, dword [esp + 0xb8]
mov ebx, dword [ecx + 0x6c]
mov ebp, dword [ecx + 0x70]
mov esi, dword [ecx + 0x74]
lea edi, [ecx + 0x6c]
mov edx, edi
lea edi, [ebp + 1]
cmp edi, esi
jg 0x58d1e3
lea esi, [ebp + 1]
mov dword [ecx + 0x70], esi
mov esi, dword [0x728500]
lea edi, [ebx + ebp*4]
test esi, esi
jne 0x58d1cb
mov dword [ebx + ebp*4], eax
jmp 0x58d153
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040ec50
mov ecx, dword [esp + 0xb8]
jmp 0x58d153
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], edx
lea eax, [0x5f1280]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.00438700
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xb8]
mov dword [ebx + 0x74], edx
mov edx, dword [0x728500]
test edx, edx
jne 0x58d240
mov dword [ebx + 0x6c], eax
mov ebp, ecx
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xb8]
jmp 0x58d1b3
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040ec50
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0xb8]
jmp 0x58d22c
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0x44]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc0], eax
add esp, 0xb4
ret
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x44]
lea ebp, [ecx + edx]
mov dword [esp + 0x38], ebp
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x74]
lea ebx, [eax + 0x6c]
mov dword [esp + 0x68], ebx
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
cmp ebp, edi
ja 0x58d705
cmp ebp, edi
ja 0x58d969
cmp ecx, ebp
ja 0x58d969
mov dword [esp + 0x64], esi
mov dword [esp + 0x34], edi
sub edi, ecx
mov dword [esp + 0x30], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
shl ecx, 2
sar edi, 0x1f
and ecx, edi
add ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
lea ecx, [0x5f1280]
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.0040efb0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb8]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x74], eax
mov eax, dword [0x728500]
test eax, eax
jne 0x58d6e5
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edx, edx
jle 0x58d6af
mov dword [esp + 0x28], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], edx
mov dword [esp], ecx
call fcn.0058c140
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0058d980
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x90]
mov ebx, eax
xor eax, eax
call fcn.0044bde7
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], esi
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xb0], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x14], ecx
call fcn.0047dbe0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x728500]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
test ecx, ecx
jne 0x58d68b
mov ecx, dword [esp + 0xb8]
mov dword [ecx + 0x50], eax
test edx, edx
jne 0x58d621
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x7c]
mov ebx, dword [ecx + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x94]
lea edx, [0x5b3440]
mov dword [esp], edx
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
call fcn.00403250
mov eax, dword [0x728500]
mov ecx, dword [esp + 0xb8]
lea edx, [ecx + 0x9c]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x58d609
mov dword [ecx + 0x9c], ebx
mov eax, dword [ecx + 0x90]
mov edx, dword [ecx + 0x94]
mov dword [esp + 0x38], edx
xor ebx, ebx
jmp 0x58d571
mov dword [esp + 0x34], ebx
mov dword [esp + 0x60], eax
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp], 8
lea edx, [0x60919c]
mov dword [esp + 4], edx
call fcn.0042e690
mov eax, dword [esp + 0x60]
add eax, 4
mov ecx, dword [esp + 0x34]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x58d530
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x58d599
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
add esp, 0xb4
ret
lea eax, [0x5b37c0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00403250
mov eax, dword [0x728500]
mov ecx, dword [esp + 0xb8]
lea edx, [ecx + 0xa0]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x58d5f4
mov dword [ecx + 0xa0], ebx
mov dword [esp + 8], ecx
mov dword [esp], 4
lea eax, [0x6091a0]
mov dword [esp + 4], eax
call fcn.0042e690
jmp 0x58d57c
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040ec50
mov ecx, dword [esp + 0xb8]
jmp 0x58d5d8
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040ec50
mov ecx, dword [esp + 0xb8]
jmp 0x58d51c
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x7c]
mov ebx, dword [ecx + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0x40]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
add esp, 0xb4
ret
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040ec50
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
jmp 0x58d4a9
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], esi
mov ebx, 1
lea eax, [esp + 0x7c]
mov edx, 1
jmp 0x58d39d
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0040ec50
mov ecx, dword [esp + 0xb8]
jmp 0x58d38c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
lea eax, [0x5f1280]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
call fcn.00438700
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x38]
jmp 0x58d30a
mov eax, dword [ecx + 0x18]
mov dword [esp], ebp
call eax
mov dword [esp], 0
call fcn.004048c0
movzx eax, byte [esp + 8]
test al, al
jne 0x58d781
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0x78]
jmp 0x58d100
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x1c]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xb4
ret
lea eax, [0x5c7200]
mov dword [esp], eax
call fcn.0040e440
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
mov ecx, dword [0x728500]
test ecx, ecx
jne 0x58d84d
lea ecx, [0x5fb08d]
mov dword [eax], ecx
lea ecx, [0x6e5a30]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add esp, 0xb4
ret
mov dword [esp + 0x58], eax
mov dword [esp], eax
lea ecx, [0x5fb08d]
mov dword [esp + 4], ecx
call fcn.0040ec50
mov eax, dword [esp + 0x58]
jmp 0x58d832
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0040ec50
mov eax, dword [esp + 0xb8]
jmp 0x58d0e0
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc0], eax
add esp, 0xb4
ret
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0058ccd0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xb4
ret
call fcn.00425960
ud2
call fcn.0044a1d0
jmp fcn.0058d050