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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x865fcd
sub esp, 0x68
mov eax, dword [esp + 0x6c]
test byte [eax], al
lea ecx, [eax + 0xfc]
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
call fcn.004723c0
mov eax, dword [esp + 0x6c]
movzx ecx, byte [eax + 0x10c]
mov byte [esp + 0x27], cl
mov byte [eax + 0x10c], 1
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call fcn.00472790
movzx eax, byte [esp + 0x27]
test al, al
jne 0x865fb2
mov eax, dword [esp + 0x70]
cmp eax, 0x3ed
jne 0x865f06
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], esi
mov eax, dword [0xdc0efc]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
lea ebp, [0xa54060]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.00870430
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
lea edx, [0x9478c0]
mov dword [esp], edx
call fcn.0040ae10
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
lea ebx, [0x928fa0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00461d80
movzx eax, byte [esp + 0x10]
test al, al
je 0x865efc
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x865eef
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x64], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea edx, [0x9478c0]
mov dword [esp], edx
lea edx, [esp + 0x5c]
mov dword [esp + 4], edx
call fcn.00408500
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x98efc0]
mov dword [esp], eax
mov dword [esp + 4], 0x14
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c6610
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00866870
mov eax, dword [esp + 0x34]
test eax, eax
je 0x865ed8
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
jmp 0x865e1d
mov eax, 0xffffffff
jmp 0x865e10
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
call fcn.008664e0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x40], ebp
test ecx, ecx
je 0x865f95
je 0x865fae
mov esi, dword [ecx + 4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], eax
lea ecx, [0x9897a8]
mov dword [esp], ecx
mov dword [esp + 4], 0xd
lea ecx, [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004d69f0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
jmp 0x865d79
mov esi, ecx
jmp 0x865f4f
mov eax, dword [0xdc3344]
mov ecx, dword [0xdc3340]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x68
ret
call fcn.004557a0
jmp fcn.00865d00