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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x492035
sub esp, 0x70
lea edi, [esp]
lea esi, [esp + 0x74]
call fcn.004606fe
lea eax, [0x51c326]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x27
call fcn.00492b90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
test edx, 0x80000000
je 0x492023
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
test edx, edx
jge 0x491dfd
xor ebp, ebp
sub ebp, ebx
mov esi, 0
sbb esi, edx
mov edx, 0x2d
jmp 0x491e06
mov ebp, ebx
mov esi, edx
mov edx, 0x2b
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x27], dl
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045b750
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045b7f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045b750
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045b7f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0046021a
mov word [esp + 0x54], 0x6d20
mov byte [esp + 0x56], 0x3d
movzx eax, byte [esp + 0x27]
mov byte [esp + 0x57], al
mov eax, dword [esp + 0x48]
test eax, eax
setne al
mov ecx, dword [esp + 0x4c]
test ecx, ecx
setne cl
or ecx, eax
test cl, cl
jne 0x491f1c
mov edx, 0x18
mov ecx, 4
xor eax, eax
lea ebx, [esp + 0x54]
jmp 0x491f5b
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 0x18
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.00491960
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, 9
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00491960
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov ebx, dword [esp + 0x14]
cmp ecx, edx
jae 0x491fbf
mov dword [esp + 0x50], eax
lea ebp, [0x4fdae0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00449cd0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x50]
mov byte [ebx + eax], 0x2e
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 9
call fcn.00491960
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044d610
mov dword [esp], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.0044d360
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x70
ret
call fcn.0045ec00
jmp fcn.00491d80