Function at 0x5f0810
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 0x5f0bf9
sub esp, 0x224
mov ecx, dword [esp + 0x228]
movzx edx, byte [ecx + 0x295]
test dl, dl
je 0x5f0883
lea edi, [esp + 0x11c]
xor eax, eax
call fcn.00463d14
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx + 0x78]
mov esi, dword [ecx + 0x7c]
lea ebx, [0x69e4a0]
cmp edx, ebx
jne 0x5f0be2
lea edi, [esp + 0x11c]
call fcn.00464008
mov eax, dword [esp + 0x154]
jmp 0x5f08b6
lea edi, [esp + 0x3c]
xor eax, eax
call fcn.00463d18
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx + 0x78]
mov esi, dword [ecx + 0x7c]
lea ebx, [0x69e9e0]
cmp edx, ebx
jne 0x5f0bcc
lea edi, [esp + 0x3c]
call fcn.00464030
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, [0x67c760]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004c1310
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 0x5f0921
mov ebx, dword [esp + 0x2c]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jae 0x5f0b97
mov dword [esp + 0x2c], ecx
lea eax, [0x67c760]
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.005e5c90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x228]
mov dword [esp], ecx
lea edx, [0x65a360]
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.005e6980
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5f0b82
mov eax, dword [esp + 0x20c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jb 0x5f0b61
mov ebx, dword [eax + 4]
cmp edx, ebx
jb 0x5f0b40
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.005f05c0
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 0x5f0b2b
lea edi, [esp + 0x210]
xor eax, eax
call fcn.00463d4b
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 0x5f0ad5
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x67ce20]
mov dword [esp + 0x10], eax
call fcn.0044acd0
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 [0x8ef4b0]
test edx, edx
jne 0x5f0ab8
mov dword [ebx + 0x100], eax
jmp 0x5f0ac3
lea edi, [ebx + 0x100]
call fcn.00463ab0
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 [0x8ef4b0]
test edx, edx
jne 0x5f0afa
lea esi, [esp + 0x210]
call fcn.0046422e
jmp 0x5f0b1e
lea eax, [0x67ce20]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x210]
mov dword [esp + 8], eax
call fcn.00411050
mov eax, dword [esp + 0x20c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x5f0912
jmp 0x5f0b97
mov dword [esp + 0x234], ecx
mov dword [esp + 0x238], edx
add esp, 0x224
ret
mov eax, dword [0x8c9028]
mov ecx, dword [0x8c902c]
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], ecx
add esp, 0x224
ret
mov eax, dword [0x8c9020]
mov ecx, dword [0x8c9024]
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 0x5f0baf
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, [0x66bb80]
mov dword [esp + 8], eax
call fcn.00409250
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x66bb80]
mov dword [esp + 8], eax
call fcn.00409250
nop
call fcn.004626a0
jmp fcn.005f0810