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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x8c]
cmp eax, dword [ecx + 8]
jbe 0x4919b5
sub esp, 0x10c
mov eax, dword [esp + 0x110]
test eax, eax
je 0x49196e
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x49196e
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4917c1
movzx edx, byte [eax + 0xf]
nop
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x4917bb
or edx, 0x80
mov ebx, dword [esp + 0x58]
jmp 0x4917c7
xor edx, edx
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4917fb
movzx ebp, byte [ecx + 0xf]
nop
mov esi, ebp
and ebp, 0x1f
xchg esi, eax
test al, 0x20
xchg esi, eax
jne 0x4917f5
or ebp, 0x80
mov esi, dword [esp + 0x50]
jmp 0x491801
xor ebp, ebp
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
test edx, edx
je 0x491835
test edx, 0x200
jne 0x491835
mov edi, eax
lea eax, [0x702820]
mov dword [esp + 0x2c], eax
mov eax, edi
jmp 0x49186b
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004a6270
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
test ebp, ebp
je 0x49188f
test ebp, 0x200
jne 0x49188f
mov dword [esp + 0x30], eax
lea eax, [0x702820]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
jmp 0x4918c3
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.004a6270
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp ebp, esi
jne 0x4918e8
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00407c30
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4918f7
mov byte [esp + 0x120], 0
add esp, 0x10c
ret
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.0046c0b9
lea edi, [esp + 0x78]
call fcn.0046c09b
lea ecx, [esp + 0x78]
mov dword [esp + 0x68], ecx
call fcn.00456760
mov ecx, dword [esp]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ecx
call fcn.0048fef0
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x120], cl
add esp, 0x10c
ret
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x110]
cmp eax, ecx
je 0x491984
xor eax, eax
jmp 0x4919a7
mov dword [esp], ecx
mov eax, dword [esp + 0x114]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 8], eax
call fcn.00407b50
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x120], al
add esp, 0x10c
ret
call fcn.0046aab0
jmp fcn.00491750