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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1a4]
cmp eax, dword [ecx + 8]
jbe 0x5e9389
sub esp, 0x224
mov ecx, dword [esp + 0x228]
movzx edx, byte [ecx + 0x295]
test dl, dl
je 0x5e9013
lea edi, [esp + 0x11c]
xor eax, eax
call fcn.004638e4
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx + 0x78]
mov esi, dword [ecx + 0x7c]
lea ebx, [0x664f20]
cmp edx, ebx
jne 0x5e9372
lea edi, [esp + 0x11c]
call fcn.00463bd8
mov eax, dword [esp + 0x154]
jmp 0x5e9046
lea edi, [esp + 0x3c]
xor eax, eax
call fcn.004638e8
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx + 0x78]
mov esi, dword [ecx + 0x7c]
lea ebx, [0x665460]
cmp edx, ebx
jne 0x5e935c
lea edi, [esp + 0x3c]
call fcn.00463c00
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], ecx
call fcn.00409550
mov eax, dword [esp + 8]
lea ecx, [0x646d20]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004bf680
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x230]
add edx, ecx
mov dword [esp + 0x28], edx
jmp 0x5e90b1
mov ebx, dword [esp + 0x2c]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jae 0x5e9327
mov dword [esp + 0x2c], ecx
lea eax, [0x646d20]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x228]
mov dword [esp], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
call fcn.005de420
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x228]
mov dword [esp], ecx
lea edx, [0x628660]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x20c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
call fcn.005df110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5e9312
mov eax, dword [esp + 0x20c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jb 0x5e92f1
mov ebx, dword [eax + 4]
cmp edx, ebx
jb 0x5e92d0
mov eax, dword [esp + 0x228]
mov dword [esp], eax
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
lea esi, [ebp + edx]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
sub ebx, edx
mov dword [esp + 0xc], ebx
call fcn.005e8d50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x5e92bb
lea edi, [esp + 0x210]
xor eax, eax
call fcn.0046391b
mov ecx, dword [esp + 0x20c]
mov edx, dword [ecx]
mov eax, ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x210], edx
mov dword [esp + 0x214], ecx
mov dword [esp + 0x218], ebx
mov dword [esp + 0x21c], ebp
mov dword [esp + 0x220], esi
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx + 0x104]
inc edx
mov ebx, dword [ecx + 0x100]
mov ebp, dword [ecx + 0x108]
cmp ebp, edx
jae 0x5e9265
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6473e0]
mov dword [esp + 0x10], eax
call fcn.0044aa20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x228]
mov dword [ebx + 0x108], edx
mov edx, dword [0x893c80]
test edx, edx
jne 0x5e9248
mov dword [ebx + 0x100], eax
jmp 0x5e9253
lea edi, [ebx + 0x100]
call fcn.00463680
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x20c]
mov ecx, dword [esp + 0x228]
mov dword [ecx + 0x104], edx
lea edx, [edx + edx*4]
lea edi, [ebx + edx*4 - 0x14]
mov edx, dword [0x893c80]
test edx, edx
jne 0x5e928a
lea esi, [esp + 0x210]
call fcn.00463dfe
jmp 0x5e92ae
lea eax, [0x6473e0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x210]
mov dword [esp + 8], eax
call fcn.00410da0
mov eax, dword [esp + 0x20c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x5e90a2
jmp 0x5e9327
mov dword [esp + 0x234], ecx
mov dword [esp + 0x238], edx
add esp, 0x224
ret
mov eax, dword [0x86dc20]
mov ecx, dword [0x86dc24]
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], ecx
add esp, 0x224
ret
mov eax, dword [0x86dc18]
mov ecx, dword [0x86dc1c]
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], ecx
add esp, 0x224
ret
mov dword [esp + 0x234], ecx
mov dword [esp + 0x238], edx
add esp, 0x224
ret
mov eax, dword [esp + 0x228]
mov ecx, dword [eax + 0x104]
test ecx, ecx
je 0x5e933f
mov byte [eax + 0x2a0], 1
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 0
add esp, 0x224
ret
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x638020]
mov dword [esp + 8], eax
call fcn.00409250
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x638020]
mov dword [esp + 8], eax
call fcn.00409250
nop
call fcn.00462270
jmp fcn.005e8fa0