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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x583ae0
sub esp, 0x64
mov eax, dword [esp + 0x68]
test eax, eax
je 0x58360c
mov ecx, dword [eax]
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x30]
mov ebp, dword [edx + 0x34]
lea esi, [0x601720]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0040f8f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x68]
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov dword [esp + 0x50], ebx
xor ebx, ebx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
xor ebx, ebx
mov dword [esp + 0x54], ebx
xor ebx, ebx
jmp 0x58364b
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x60]
mov ebp, ebx
mov esi, edx
mov edx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x58], edi
cmp ebx, eax
jge 0x5838d2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], esi
mov ebx, dword [ecx + ebx*4]
nop
mov ebp, dword [edx + 8]
mov esi, dword [edx + 4]
cmp ebp, ebx
jbe 0x583ad6
shl ebx, 4
mov edx, dword [esi + ebx + 0xc]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp]
test eax, eax
je 0x5836ac
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
jmp 0x583628
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx + 0x1d0]
mov ebp, dword [ecx + 0x1cc]
mov esi, dword [esp + 0x6c]
mov eax, ebp
mov ebp, dword [esi + 0x1d8]
cmp dword [esi + 0x1dc], ebx
je 0x5836d4
xor eax, eax
jmp 0x5836f1
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00402a70
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x6c]
test al, al
je 0x583782
mov ebx, dword [esp + 0x30]
inc ebx
mov ebp, dword [esp + 0x34]
cmp ebp, ebx
jb 0x58370c
mov edi, dword [esp + 0x58]
jmp 0x583748
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov ebp, esi
mov esi, dword [esp + 0x6c]
mov eax, esi
mov esi, dword [0x81dcc0]
mov edx, ebp
lea ebp, [edi + ebx*4 - 4]
test esi, esi
jne 0x583760
mov dword [edi + ebx*4 - 4], ecx
jmp 0x583771
mov esi, edi
mov edi, ebp
mov eax, ecx
call fcn.00462500
mov eax, dword [esp + 0x6c]
mov edi, esi
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
jmp 0x583628
mov ebx, dword [ecx + 0x1d0]
test ebx, ebx
jne 0x58379e
mov ebp, dword [esi + 0x1dc]
test ebp, ebp
jne 0x5837ac
test ebx, ebx
je 0x583835
mov ebx, dword [esi + 0x1dc]
test ebx, ebx
jne 0x583835
mov ebx, dword [esp + 0x20]
inc ebx
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jb 0x5837bf
mov eax, dword [esp + 0x50]
jmp 0x5837fb
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6c]
mov ebp, ecx
mov ecx, dword [esp + 0x4c]
mov edx, esi
mov esi, dword [0x81dcc0]
lea edi, [eax + ebx*4 - 4]
test esi, esi
jne 0x583811
mov dword [eax + ebx*4 - 4], ecx
jmp 0x58381c
mov esi, eax
mov eax, ecx
call fcn.00462500
mov eax, esi
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
mov ecx, ebx
mov esi, eax
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
jmp 0x583628
mov ebx, dword [esp + 0x28]
inc ebx
mov ebp, dword [esp + 0x2c]
cmp ebp, ebx
jb 0x583848
mov eax, dword [esp + 0x54]
jmp 0x583884
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6c]
mov ebp, ecx
mov ecx, dword [esp + 0x4c]
mov edx, esi
mov esi, dword [0x81dcc0]
lea edi, [eax + ebx*4 - 4]
test esi, esi
jne 0x58389a
mov dword [eax + ebx*4 - 4], ecx
jmp 0x5838a5
mov esi, eax
mov eax, ecx
call fcn.00462500
mov eax, esi
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
jmp 0x583628
mov eax, dword [esp + 0x20]
lea ecx, [ebp + eax]
mov edx, dword [esp + 0x28]
add ecx, edx
test ecx, ecx
je 0x583aba
mov dword [esp + 0x38], ecx
lea eax, [0x627a00]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.00449ec0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
cmp ecx, edx
ja 0x58391a
mov ebx, ecx
jmp 0x58394c
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov edx, ecx
mov ecx, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
lea ebp, [0x627a00]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov esi, dword [esp + 0x58]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00410800
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x40]
cmp ebx, edx
jb 0x583993
mov ebp, dword [esp + 0x5c]
jmp 0x5839cd
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], edx
lea esi, [0x627a00]
mov dword [esp], esi
sub ebx, eax
neg ebx
shl eax, 2
sar ebx, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00410800
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x40]
cmp ebx, edx
jb 0x583a28
mov ebp, dword [esp + 0x5c]
jmp 0x583a5e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x627a00]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edx
lea esi, [0x627a00]
mov dword [esp], esi
sub ebx, eax
neg ebx
mov edi, eax
shl eax, 2
sar ebx, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 4], eax
sub edx, edi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00410800
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
add esp, 0x64
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
mov eax, ebx
mov ecx, ebp
call fcn.00462580
nop
call fcn.004610f0
jmp fcn.00583580