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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x5887ec
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x588248
inc ebp
mov esi, ecx
mov ecx, dword [esp + 0xc8]
cmp ebp, edx
jge 0x58826e
movzx ecx, byte [ebx + ebp]
cmp cl, 1
jne 0x58825c
mov ecx, 1
jmp 0x58823e
cmp cl, 0x40
jne 0x58826a
mov ecx, esi
mov edi, 1
jmp 0x58823e
mov ecx, esi
jmp 0x58823e
mov dword [esp + 0x78], eax
mov edx, dword [eax + 0x24]
mov edx, dword [edx + 0x20]
test edx, edx
jne 0x5886c7
xchg edi, eax
mov byte [esp + 0x2f], al
xchg edi, eax
xchg esi, eax
mov byte [esp + 0x2e], al
xchg esi, eax
lea eax, [0x7f9b20]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 4]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
test ebx, ebx
jle 0x5884a7
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], ebx
movzx ebp, byte [esp + 0x2e]
movzx esi, byte [esp + 0x2f]
xor edi, edi
jmp 0x58843b
mov ebx, dword [esp + 0x80]
lea esi, [ebx + 0xc]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], esi
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov ebp, dword [edx + 0x38]
mov edi, dword [edx + 0x34]
mov edx, dword [edx + 0x30]
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
call fcn.004021c0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x5884dd
mov eax, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jl 0x5882cf
mov eax, dword [esp + 0x3c]
inc eax
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jge 0x5883f9
mov edx, dword [esp + 0x84]
add edx, 0xc
movzx ebx, byte [esp + 0x2e]
mov ebp, dword [esp + 0xc8]
mov esi, dword [esp + 0x8c]
movzx edi, byte [esp + 0x2f]
mov ebx, dword [esp + 0x58]
movzx ebp, byte [esp + 0x2e]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0xc8]
mov ecx, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x84], ecx
mov eax, dword [ecx + 8]
mov dword [esp + 0x48], eax
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x58853d
test edx, edx
je 0x58853d
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5883c3
mov ecx, dword [edx + 0x4c]
cmp ecx, 1
je 0x588533
movzx ecx, byte [esp + 0x2f]
test cl, cl
je 0x5883f9
mov ebx, dword [edx + 0x4c]
cmp ebx, 3
jne 0x5883f9
mov ebx, dword [edi + 0x2c]
mov esi, dword [edi + 0x28]
test ebx, ebx
je 0x588508
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x5882e1
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jge 0x5884a7
mov edx, dword [esp + 0x88]
add edx, 0x30
movzx ebx, byte [esp + 0x2e]
mov ebp, dword [esp + 0x8c]
movzx esi, byte [esp + 0x2f]
mov ebx, ecx
movzx ebp, byte [esp + 0x2e]
mov ecx, edx
mov edi, eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x40], edi
lea edi, [esp + 0x90]
mov esi, ecx
call fcn.0044cf28
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x588691
mov edi, edx
lea esi, [esp + 0x90]
call fcn.0044cf28
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x58867f
mov ecx, dword [edx]
mov esi, eax
mov eax, dword [edx + 4]
test eax, eax
jle 0x5883f9
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
jmp 0x588387
lea eax, [0x7f9b20]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
movzx ecx, byte [esp + 0x2f]
jmp 0x5883d4
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
call fcn.0056cb90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x588580
movzx ebp, byte [esp + 0x2e]
xchg ebp, eax
test al, al
xchg ebp, eax
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0xc8]
mov edx, eax
mov eax, dword [esp + 0x3c]
jmp 0x5883b5
mov dword [esp + 0x44], ecx
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov byte [esp + 4], 0x50
call fcn.00581a50
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00459e10
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x44]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x848ee6]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
lea edx, [0x832fd3]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.0043bdf0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
lea edx, [0x7d00e0]
mov dword [esp], edx
call fcn.00409c40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x588674
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov dword [esp + 0xcc], 0
lea eax, [0x8b2890]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edi
add esp, 0xc0
ret
mov eax, dword [esp + 0x70]
call fcn.0044c990
jmp 0x58864e
movzx ecx, byte [esp + 0x2f]
test cl, cl
jne 0x58847a
jmp 0x5883f9
lea eax, [0x7f9b20]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x90]
mov dword [esp + 8], eax
call fcn.0040f640
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
movzx ebp, byte [esp + 0x2e]
jmp 0x588470
movzx edx, byte [ecx + 0xc]
test dl, dl
je 0x588791
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x7c], ebp
lea eax, [0x7da1a0]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
mov edi, dword [esp + 4]
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x58878a
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x588774
mov eax, dword [esp + 0x7c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
mov dword [esp], edi
mov eax, dword [edx]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ecx
add esp, 0xc0
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x7c]
call fcn.0044c990
mov edi, edx
jmp 0x58873b
call fcn.0044c990
jmp 0x58871c
mov edx, dword [0xb78a30]
mov ebx, dword [0xb78a38]
mov ebp, dword [0xb78a34]
xchg edi, eax
test al, al
xchg edi, eax
je 0x5887c3
xchg esi, eax
test al, al
xchg esi, eax
je 0x5887ba
mov esi, edx
mov edx, ebp
mov ebp, esi
jmp 0x5886dc
add ebp, 0xfffffffc
cmp ebp, ebx
jbe 0x5887af
jmp 0x5887de
cmp ebp, 3
jb 0x5887e5
add ebx, 0xfffffffd
mov edi, ebx
neg ebx
sar ebx, 0x1f
and ebx, 6
add edx, ebx
add ebp, 0xfffffffd
mov ebx, edi
jmp 0x5887a9
call fcn.004265e0
ud2
call fcn.004265e0
ud2
call fcn.0044b230
jmp fcn.00588200