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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x580793
sub esp, 0x6c
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x5803f7
mov ebx, dword [ecx + 8]
jmp 0x5803ff
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], edx
mov ebp, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
cmp edx, 5
jne 0x580440
cmp dword [ebx], 0x65732121
je 0x58041f
cmp edx, 5
jmp 0x58042c
cmp byte [ebx + 4], 0x71
je 0x5804db
cmp edx, 5
jne 0x580440
cmp dword [ebx], 0x616d2121
jne 0x580440
cmp byte [ebx + 4], 0x70
je 0x5804db
cmp ebp, 0xa
jle 0x58048b
mov dword [esp], 0
lea eax, [0x609c83]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 7
lea eax, [0x60a017]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 4
call fcn.00453b00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x5804cb
mov dword [esp], 0
lea eax, [0x609c83]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
lea eax, [0x656eec]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.00453b00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov ebp, ecx
mov esi, eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], esi
cmp edx, 0x12
jge 0x5804ec
xor eax, eax
jmp 0x58051f
mov dword [esp], ebx
lea eax, [0x60e5bd]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
call fcn.004030b0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
test al, al
je 0x5805c1
mov eax, dword [0x79ad08]
lea ecx, [0x5df100]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.00411540
movzx eax, byte [esp + 0x14]
test al, al
je 0x580567
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
jmp 0x5805c1
mov ecx, dword [esp + 0x30]
cmp ecx, 0x12
jb 0x580788
mov dword [esp], 0
lea eax, [0x609c81]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
lea eax, [ecx - 0x12]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 0x12
mov edx, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00453a60
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x88]
test ebp, ebp
je 0x5805eb
test ebp, 0x200
jne 0x5805eb
lea ebp, [0x65a1a0]
mov edi, dword [esp + 0x80]
jmp 0x580619
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004c5b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov edi, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ebp
xor eax, eax
lea edi, [esp + 0x4c]
call fcn.0046c088
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x48]
mov dword [esp], ecx
call fcn.0040a980
mov ecx, dword [esp + 4]
lea edx, [0x5dd620]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.0040aa80
mov ecx, dword [esp + 8]
lea edx, [0x5dd3e0]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.0040aa80
mov ecx, dword [esp + 8]
lea edx, [0x5dd3e0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5806a6
mov ebp, dword [ecx + 4]
jmp 0x5806a8
mov ebp, ecx
mov dword [esp + 0x64], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [0x61700f]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
call fcn.004cd980
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
inc edx
mov ebx, dword [eax + 8]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ecx, edx
jae 0x58075f
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], ebp
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5dd3e0]
mov dword [esp + 0x10], eax
call fcn.00450060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x10], eax
mov eax, dword [0x7da640]
test eax, eax
je 0x580750
call fcn.0046be80
mov dword [edi], ecx
mov eax, dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [ebx + 8], ecx
mov eax, ebx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov ebx, ecx
mov dword [eax + 0xc], edx
lea eax, [ebx + edx*8 - 4]
mov dword [eax], esi
mov eax, dword [0x7da640]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
je 0x580782
call fcn.0046be80
mov dword [edi], ebp
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov dword [ecx], ebp
add esp, 0x6c
ret
mov eax, 0x12
call fcn.0046bf50
nop
call fcn.0046aa70
jmp fcn.005803d0