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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x582dcf
sub esp, 0x58
mov eax, dword [esp + 0x84]
test eax, eax
je 0x582a1b
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
jmp 0x582a25
xor eax, eax
xor ecx, ecx
lea edx, [0x7e3160]
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x582a3f
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
jmp 0x582a57
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
lea edi, [esi + ebp]
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x4c], edi
jg 0x582c4d
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x582bd1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], edx
test ebx, ebx
jne 0x582a7a
lea edi, [esi + ebp]
cmp dword [eax + 0x14], edi
jg 0x582b61
mov dword [esp], eax
call fcn.00585e30
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x582ad1
nop
mov ebx, dword [esp + 0x60]
mov dword [eax + 0x68], ebx
mov ebx, dword [0x7e34c0]
test ebx, ebx
jne 0x582aab
mov ebx, dword [esp + 0x64]
mov dword [eax + 0x6c], ebx
jmp 0x582abb
lea edi, [eax + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.00463860
mov eax, ecx
mov byte [eax + 0x70], 0
mov dword [eax + 0x74], 0
lea ebx, [eax + 0x68]
lea ecx, [0x675534]
jmp 0x582b44
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x582b10
nop
mov ebp, dword [esp + 0x6c]
mov dword [eax + 0x58], ebp
mov ebp, dword [esp + 0x70]
mov dword [eax + 0x5c], ebp
mov ebp, dword [0x7e34c0]
test ebp, ebp
jne 0x582af7
mov dword [eax + 0x54], ebx
jmp 0x582b05
lea edi, [eax + 0x54]
mov ecx, eax
mov eax, ebx
call fcn.00463860
mov eax, ecx
lea ebx, [eax + 0x54]
lea ecx, [0x675510]
jmp 0x582b44
nop
mov ebx, dword [esp + 0x78]
mov dword [eax + 0x64], ebx
mov ebx, dword [0x7e34c0]
test ebx, ebx
jne 0x582b2b
mov ebx, dword [esp + 0x74]
mov dword [eax + 0x60], ebx
jmp 0x582b3b
lea edi, [eax + 0x60]
mov ecx, eax
mov eax, dword [esp + 0x74]
call fcn.00463860
mov eax, ecx
lea ebx, [eax + 0x60]
lea ecx, [0x675558]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
nop
mov ebp, dword [eax + 0x38]
mov esi, dword [eax + 0x3c]
mov edi, dword [esp + 0x80]
xor edx, edx
jmp 0x582c7e
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
call fcn.00580d20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x58
ret
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
call fcn.00582170
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x58
ret
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x58
ret
mov dword [ebx + 8], edi
inc edx
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
cmp edx, esi
jge 0x582c92
mov ebx, dword [ebp + edx*4]
mov eax, dword [ebx + 0xc]
cmp edi, eax
jbe 0x582c72
jmp 0x582dc5
mov edx, dword [eax + 0x50]
cmp edi, edx
ja 0x582dbe
mov dword [eax + 0x4c], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
call fcn.00581210
movzx eax, byte [esp + 0x10]
test al, al
je 0x582d85
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x40]
lea ebx, [ecx + edx]
mov ebp, dword [eax + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, ebx
jb 0x582ce4
mov edi, dword [esp + 0x54]
jmp 0x582d2a
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x5f05c0]
mov dword [esp + 0x10], eax
call fcn.0044a320
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x50]
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.00464180
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00586160
mov eax, dword [esp + 0x54]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x98], eax
add esp, 0x58
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00586160
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x58
ret
mov ecx, edi
call fcn.00463920
mov ecx, edi
mov edx, eax
call fcn.00463920
nop
call fcn.00462450
jmp fcn.005829e0