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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x582896
sub esp, 0x98
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea eax, [0x5828a0]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
call fcn.0051f3e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x64], esi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x5824bd
test ebx, ebx
je 0x58249b
lea ecx, [0x73c5c0]
cmp eax, ecx
jne 0x582497
mov dword [esp + 0x84], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x50], ebx
lea eax, [0x6a9e60]
mov dword [esp], eax
call fcn.0040bd30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x8f52e0]
test eax, eax
jne 0x582451
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
jmp 0x58245a
mov eax, dword [esp + 0x7c]
call fcn.004642e0
mov ecx, dword [esp + 0x8c]
mov dword [edi + 8], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x58247a
mov eax, dword [esp + 0x84]
mov dword [edi + 0xc], eax
jmp 0x58248f
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x84]
mov edx, edi
mov edi, ecx
call fcn.004642e0
mov edi, edx
lea edx, [0x73c05c]
jmp 0x58249d
mov edi, ebp
jmp 0x58249d
mov edi, ebp
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edi
add esp, 0x98
ret
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x9c]
mov edx, dword [eax + 0x134]
mov dword [esp + 0x4c], edx
mov ebx, dword [eax + 0x138]
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x68], ebp
mov esi, dword [eax + 0x144]
mov dword [esp + 0x44], esi
cmp ebx, 2
je 0x582501
cmp ebx, 3
setne al
mov byte [esp + 0x2f], al
jmp 0x58250b
mov dword [esp + 0x54], eax
xor eax, eax
mov byte [esp + 0x2f], al
mov dword [esp + 0x30], ebx
cmp ebx, 1
sete al
mov byte [esp + 0x2e], al
lea ecx, [0x6be040]
mov dword [esp], ecx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
movzx ecx, byte [esp + 0x2e]
mov byte [eax + 0x12d], cl
movzx ecx, byte [esp + 0x2f]
mov byte [eax + 0x12e], cl
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x134], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x58257c
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x140], ecx
jmp 0x58258f
lea edi, [eax + 0x140]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.004642e0
mov eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp], eax
call fcn.005817c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x582841
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x40]
test edx, edx
jbe 0x58288c
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.00500c50
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004fdeb0
mov eax, dword [esp + 4]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x60]
mov dword [esp], edx
call fcn.004fdeb0
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x78]
mov ebx, dword [edx + 0x134]
cmp ebx, 1
jne 0x582695
mov ebx, dword [edx + 0x138]
cmp ebx, 1
jne 0x58267b
lea ebx, [0x6ee520]
jmp 0x5826d2
cmp ebx, 2
jne 0x582688
lea ebx, [0x6ee518]
jmp 0x5826d2
cmp ebx, 5
jne 0x5826cc
lea ebx, [0x6ee51c]
jmp 0x5826d2
cmp ebx, 2
je 0x58269f
cmp ebx, 0x17
jne 0x5826cc
mov ebx, dword [edx + 0x138]
cmp ebx, 1
jne 0x5826b2
lea ebx, [0x6ee510]
jmp 0x5826d2
cmp ebx, 2
jne 0x5826bf
lea ebx, [0x6ee514]
jmp 0x5826d2
cmp ebx, 3
jne 0x5826cc
lea ebx, [0x6ee50c]
jmp 0x5826d2
lea ebx, [0x6ee4b0]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, ebx
call eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x8c], ebp
cmp ecx, 1
jne 0x582739
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x58271f
lea ecx, [0x6ee520]
jmp 0x582776
cmp ecx, 2
jne 0x58272c
lea ecx, [0x6ee518]
jmp 0x582776
cmp ecx, 5
jne 0x582770
lea ecx, [0x6ee51c]
jmp 0x582776
cmp ecx, 2
je 0x582743
cmp ecx, 0x17
jne 0x582770
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x582756
lea ecx, [0x6ee510]
jmp 0x582776
cmp ecx, 2
jne 0x582763
lea ecx, [0x6ee514]
jmp 0x582776
cmp ecx, 3
jne 0x582770
lea ecx, [0x6ee50c]
jmp 0x582776
lea ecx, [0x6ee4b4]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x78]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x8f52e0]
test ebx, ebx
jne 0x5827bd
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x14c], edx
jmp 0x5827d0
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x74]
call fcn.004642e0
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5827e8
mov dword [ebp + 0x154], eax
jmp 0x5827f3
lea edi, [ebp + 0x154]
call fcn.004642e0
lea eax, [0x6cc460]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x694fc0]
mov dword [esp + 8], eax
lea eax, [0x6ee4ac]
mov dword [esp + 0xc], eax
call fcn.00415770
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x98
ret
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call fcn.005814d0
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xa8], eax
add esp, 0x98
ret
xor eax, eax
mov ecx, eax
call fcn.00464360
nop
call fcn.00462ed0
jmp fcn.00582360