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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49b6ba
sub esp, 0x7c
mov eax, 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x49b676
movzx edx, byte [0xb80c38]
test dl, dl
je 0x49b66a
mov dword [0xb80c3c], ecx
mov edx, dword [0xb92b90]
test edx, edx
jne 0x49b653
mov eax, dword [esp + 0x84]
mov dword [0xb80c40], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x49b648
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x49b1ed
or edx, 0x80
mov ebx, edx
and edx, 0x1f
cmp edx, 0x17
jne 0x49b60a
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004a55e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49b5f9
cmp eax, 1
je 0x49b5e8
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.004a7b40
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x8b7600]
cmp edx, ecx
jne 0x49b69c
movzx ecx, byte [eax + 0xf]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
test cl, 0x80
jne 0x49b40b
cmp edx, 4
je 0x49b39d
and ecx, 0x1f
cmp ecx, 0x18
je 0x49b32f
mov dword [esp + 0x70], eax
mov dword [esp], eax
call fcn.00409c80
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
lea ecx, [0x7f0960]
mov dword [esp], ecx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4ab120]
mov dword [eax], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b31d
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b2ff
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x10], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x70]
call fcn.0044c990
lea edi, [ecx + 0x10]
mov eax, dword [esp + 0x54]
call fcn.0044c990
mov eax, ecx
jmp 0x49b2f4
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0044c990
mov eax, ecx
jmp 0x49b2d5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
lea ebx, [0x7ce300]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4aaf30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b38b
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0044c990
mov eax, ecx
jmp 0x49b380
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
lea ebx, [0x7ce2a0]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4aaec0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b3f9
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0044c990
mov eax, ecx
jmp 0x49b3ee
cmp edx, 2
ja 0x49b4fe
cmp edx, 1
je 0x49b490
cmp edx, 2
jne 0x49b296
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
lea ebx, [0x7ce0c0]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4ab080]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b47e
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0044c990
mov eax, ecx
jmp 0x49b473
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebx, [0x7ce1e0]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4ab0d0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b4ec
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0044c990
mov eax, ecx
jmp 0x49b4e1
cmp edx, 4
je 0x49b57a
cmp edx, 8
jne 0x49b296
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea ebx, [0x7ce180]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4aafd0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b568
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0044c990
mov eax, ecx
jmp 0x49b55d
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
lea ebx, [0x7ce120]
mov dword [esp], ebx
call fcn.00409c40
mov eax, dword [esp + 4]
lea ecx, [0x4ab030]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x49b5d6
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x6c]
call fcn.0044c990
mov eax, ecx
jmp 0x49b5cb
lea eax, [0x8594c4]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea eax, [0x8594c0]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x48], edx
lea eax, [0x7ddda0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 7
mov eax, dword [0xb92b90]
test eax, eax
jne 0x49b63b
lea eax, [0x835962]
mov dword [edi], eax
jmp 0x49b681
lea eax, [0x835962]
call fcn.0044c990
jmp 0x49b681
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x49b1ed
lea edi, [0xb80c40]
mov eax, dword [esp + 0x84]
call fcn.0044c990
jmp 0x49b1c5
mov eax, dword [esp + 0x84]
jmp 0x49b1c5
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x49b1ed
mov eax, dword [esp + 0x48]
mov dword [edi + 8], eax
lea eax, [0x7c83a0]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004273c0
ud2
mov dword [esp], ecx
lea eax, [0x82d080]
mov dword [esp + 4], eax
lea eax, [0x822c40]
mov dword [esp + 8], eax
call fcn.00407210
ud2
call fcn.0044b230
jmp fcn.0049b160