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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x582e07
sub esp, 0x6c
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
test edx, edx
jne 0x582a6f
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], ebx
mov ebp, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
cmp edx, 5
jne 0x582ab0
cmp dword [ebx], 0x65732121
je 0x582a8f
cmp edx, 5
jmp 0x582a9c
cmp byte [ebx + 4], 0x71
je 0x582b4b
cmp edx, 5
jne 0x582ab0
cmp dword [ebx], 0x616d2121
jne 0x582ab0
cmp byte [ebx + 4], 0x70
je 0x582b4b
cmp esi, 0xa
jle 0x582afb
mov dword [esp], 0
lea eax, [0x60b3e9]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 7
lea eax, [0x60b720]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 4
call fcn.0044dcb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x582b3b
mov dword [esp], 0
lea eax, [0x60b3e9]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
lea eax, [0x6605a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.0044dcb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov esi, ecx
mov ebp, eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], esi
cmp edx, 0x12
jge 0x582b5c
xor eax, eax
jmp 0x582b8f
mov dword [esp], ebx
lea eax, [0x610276]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
call fcn.00402a50
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
test al, al
je 0x582c39
mov eax, dword [0x7a102c]
lea ecx, [0x5e3660]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.0040fa80
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [eax]
mov eax, dword [eax + 4]
test cl, cl
je 0x582bdb
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov ebx, edx
mov edx, eax
jmp 0x582c39
mov ecx, dword [esp + 0x30]
cmp ecx, 0x12
jb 0x582dfc
mov dword [esp], 0
lea eax, [0x60b3eb]
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.0044dc10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov ebx, edx
mov edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x88]
test esi, esi
je 0x582c63
test esi, 0x200
jne 0x582c63
lea esi, [0x663100]
mov edi, dword [esp + 0x80]
jmp 0x582c91
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004be9f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edi, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], esi
xor eax, eax
lea edi, [esp + 0x4c]
call fcn.00463958
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x48]
mov dword [esp], ecx
call fcn.00409570
mov ecx, dword [esp + 4]
lea edx, [0x5e17a0]
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.00409680
mov ecx, dword [esp + 8]
lea edx, [0x5e1fa0]
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.00409680
mov ecx, dword [esp + 8]
lea edx, [0x5e1fa0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x582d1e
mov esi, dword [ecx + 4]
jmp 0x582d20
mov esi, ecx
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [0x619447]
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.004c77c0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [eax + 0xc]
mov esi, dword [esp + 0x18]
inc ebp
cmp edx, ebp
jae 0x582dd6
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], esi
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5e1fa0]
mov dword [esp + 0x10], eax
call fcn.0044a1f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x10], edx
mov edx, dword [0x7c78f0]
test edx, edx
jne 0x582dc0
mov dword [ebx + 8], eax
jmp 0x582dc8
lea edi, [ebx + 8]
call fcn.00463730
mov esi, dword [esp + 0x34]
mov ebp, ecx
mov ecx, eax
mov eax, ebx
mov ebx, dword [esp + 0x48]
mov dword [eax + 0xc], ebp
lea edx, [ecx + ebp*8 - 4]
mov dword [edx], esi
lea edi, [ecx + ebp*8 - 8]
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x582df1
mov dword [edi], ebx
jmp 0x582df8
mov eax, ebx
call fcn.00463730
add esp, 0x6c
ret
mov eax, 0x12
call fcn.00463810
nop
call fcn.00462320
jmp fcn.00582a40