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

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
call fcn.004a3d90
cmp al, 1
jne 0x49f4b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0056b3e0
neg al
sbb eax, eax
and eax, 3
inc eax
mov dword [esp + 0x38], eax
call fcn.0055d190
mov dword [esp + 0x40], eax
call fcn.0056b460
mov ebp, eax
cmp dword [0x918824], 1
mov dword [esp + 0x30], ebp
je 0x49f7ee
mov eax, dword [0x9187d8]
test eax, eax
je 0x49f507
call fcn.0041bb40
test al, al
jne 0x49f507
call fcn.004a08c0
test al, al
je 0x49f7ee
call fcn.005cdc00
fstp dword [esp + 0x14]
call fcn.005cdc10
fstp dword [esp + 0x3c]
push 1
push str.OPTIONS_WIDESCREEN
mov dword [esp + 0x4c], 0x280
call fcn.00704c0b
mov ecx, eax
call fcn.00704db9
test eax, eax
je 0x49f540
mov dword [esp + 0x44], 0x356
push 1
push 0x8557dc
call fcn.00704c0b
mov ecx, eax
call fcn.00704db9
test eax, eax
je 0x49f594
lea eax, [esp + 0x20]
push eax
call fcn.0079d3a3
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
sub ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
sub edx, eax
mov dword [esp + 0x18], edx
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
call fcn.0055db70
add eax, 0x3c80
push eax
call fcn.0041d7a0
mov esi, eax
mov eax, dword [esi]
fild dword [esi]
test eax, eax
mov dword [esp + 0x1c], esi
jge 0x49f5b8
fadd dword [0x847dd4]
fdiv dword [esp + 0x18]
fimul dword [esp + 0x48]
call fcn.0081cba0
fild dword [esi + 4]
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebp, eax
jge 0x49f5d7
fadd dword [0x847dd4]
fdiv dword [esp + 0x40]
fmul dword [0x84672c]
call fcn.0081cba0
lea edx, [esp + 0x4c]
mov edi, eax
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004a0540
add esp, 0xc
xor esi, esi
xor bl, bl
call fcn.0056b3e0
test al, al
je 0x49f62a
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x30], ecx
je 0x49f62a
call fcn.004a08c0
test al, al
je 0x49f62a
call fcn.004a08b0
test al, al
jne 0x49f62a
mov esi, 0x1388
mov bl, 1
call fcn.004a08c0
test al, al
je 0x49f652
call fcn.004a08b0
test al, al
jne 0x49f652
call fcn.0056b420
test al, al
je 0x49f652
call fcn.0049ead0
test al, al
je 0x49f652
xor esi, esi
xor bl, bl
cmp dword [0x8ae62c], ebp
jne 0x49f662
cmp dword [0x8ae628], edi
je 0x49f688
fld dword [esp + 0x48]
call fcn.0081cba0
fld dword [esp + 0x34]
mov edx, edi
sub edx, eax
push edx
call fcn.0081cba0
mov ecx, esi
sub ecx, eax
add ecx, ebp
push ecx
call fcn.0070c620
add esp, 8
mov dword [0x8ae62c], ebp
mov dword [0x8ae628], edi
call fcn.0056b3e0
test al, al
je 0x49f73a
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x30], edx
je 0x49f73a
test bl, bl
jne 0x49f752
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
call fcn.005d3020
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
fld dword [esp + 0x14]
call fcn.0081cba0
imul eax, ebp
fld dword [esp + 0x3c]
cdq
idiv dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x54], eax
call fcn.0081cba0
mov ecx, eax
imul ecx, edi
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x24]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + ecx + 1]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x4c]
inc eax
push edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_ClipCursor]
mov byte [0x8ae624], 1
jmp 0x49f752
mov al, byte [0x8ae624]
test al, al
je 0x49f752
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov byte [0x8ae624], 0
test byte [0x925ffc], 1
jne 0x49f77a
mov edx, dword [0x925ffc]
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 8]
or edx, 1
test cl, cl
mov dword [0x925ffc], edx
setne byte [0x925ff8]
mov al, byte [0x925ff8]
test al, al
je 0x49f794
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 8]
test al, al
jne 0x49f7d4
push 1
push 1
jmp 0x49f7a3
mov edx, dword [esp + 0x18]
mov al, byte [edx + 8]
test al, al
je 0x49f7d4
push 1
push 0
push 0
call fcn.0070c660
fld dword [esp + 0x54]
call fcn.0081cba0
fld dword [esp + 0x40]
sub edi, eax
push edi
call fcn.0081cba0
sub esi, eax
add esi, ebp
push esi
call fcn.0070c620
add esp, 0x14
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 8]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
test cl, cl
setne cl
mov byte [0x925ff8], cl
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jle 0x49f839
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.0055ee00
add esp, 8
cmp eax, 0x41
jge 0x49f830
xor esi, esi
call fcn.0056b3e0
test al, al
je 0x49f81f
cmp edi, ebp
je 0x49f81f
mov esi, 0x6d
mov eax, dword [esp + 0x1c]
push esi
push 0
push eax
call fcn.0070c660
add esp, 0xc
inc ebx
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jl 0x49f7f8
lea ecx, [esp + 0x20]
push ecx
call fcn.0049ea70
mov ebp, dword [esp + 0x3c]
add esp, 4
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
xor esi, esi
test ebp, ebp
jle 0x49f882
lea ebx, [ebx]
push esi
push edi
call fcn.0055dbd0
add esp, 8
test eax, eax
jne 0x49f874
inc dword [esp + 0x1c]
jmp 0x49f87d
cmp eax, 1
jne 0x49f87d
inc dword [esp + 0x30]
inc esi
cmp esi, ebp
jl 0x49f860
inc edi
cmp edi, 0xa
jb 0x49f854
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x49f8a0
mov ebp, dword [esp + 0x38]
jmp 0x49f8a0
test ebp, ebp
mov dword [esp + 0x18], 0
jle 0x49fce3
lea edx, [eax - 2]
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.0055dbd0
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0055ee20
mov edx, dword [esp + 0x28]
push esi
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.0055ee40
add esp, 0x20
test esi, esi
jne 0x49fa41
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x1f5
push edx
push esi
call fcn.0049f280
add esp, 0x10
test al, al
je 0x49f942
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
add esi, esi
mov dword [eax + 8], ecx
mov byte [esi + 0x925fe4], 1
mov dword [eax + 0xc], edx
call fcn.007163c0
jmp 0x49f99a
mov eax, dword [esp + 0x14]
lea esi, [eax + eax]
mov cl, byte [esi + 0x925fe4]
test cl, cl
je 0x49f99d
sub esp, 0x10
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx], edx
add al, 2
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov byte [esp + 0x38], al
mov edx, dword [esp + 0x38]
mov eax, 0x1f5
mov dword [ecx + 8], edx
mov dword [esp + 0x3c], eax
mov dword [ecx + 0xc], eax
call fcn.007163c0
mov byte [esi + 0x925fe4], 0
add esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x1f6
push ecx
push 0
call fcn.0049f280
add esp, 0x10
test al, al
je 0x49f9e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov byte [esi + 0x925fe5], 1
mov dword [edx + 0xc], ecx
call fcn.007163c0
jmp 0x49fa3e
mov al, byte [esi + 0x925fe5]
test al, al
je 0x49fa41
mov dl, byte [esp + 0x14]
add dl, 2
mov byte [esp + 0x28], dl
sub esp, 0x10
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx], edx
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov eax, 0x1f6
mov dword [ecx + 8], edx
mov dword [esp + 0x3c], eax
mov dword [ecx + 0xc], eax
call fcn.007163c0
mov byte [esi + 0x925fe5], 0
add esp, 0x10
mov esi, 1
call fcn.0056b400
test al, al
je 0x49fa56
mov esi, 2
jmp 0x49fa64
call fcn.0056b420
test al, al
je 0x49fa64
mov esi, 4
mov eax, dword [esp + 0x34]
imul eax, esi
test edi, edi
mov esi, dword [esp + 0x18]
lea ebp, [eax + esi + 2]
je 0x49fac0
cmp edi, 1
je 0x49fa9e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49fa8c
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x49fae2
call fcn.0056b400
test al, al
je 0x49fae2
test esi, esi
je 0x49fac0
cmp esi, 1
jne 0x49fae2
mov edi, 0x68
mov byte [esp + 0x13], 1
call fcn.0056b420
test al, al
je 0x49faec
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49faec
mov edi, 0x6c
jmp 0x49faec
mov edi, 0x67
mov byte [esp + 0x13], 1
call fcn.0056b420
test al, al
je 0x49faec
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49faec
mov edi, 0x6b
jmp 0x49faec
mov edi, 0x66
mov byte [esp + 0x13], 0
xor esi, esi
mov edi, edi
mov ecx, dword [esi + 0x8ae580]
mov al, byte [esp + ecx + 0x78]
test al, al
je 0x49fb71
call fcn.0056b3e0
test al, al
je 0x49fb5e
mov al, byte [esp + 0x13]
test al, al
je 0x49fb5e
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49fb2b
mov edx, dword [esi + 0x8ae584]
push 0x6a
push 0
push edx
call fcn.0070c660
add esp, 0xc
inc ebx
mov eax, dword [esi + 0x8ae584]
push edi
push 0
push eax
call fcn.0070c660
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
add esp, 0xc
inc ebx
cmp eax, ecx
jne 0x49fb5e
mov edx, dword [esi + 0x8ae584]
push 0x69
push 0
push edx
call fcn.0070c660
add esp, 0xc
inc ebx
mov eax, dword [esi + 0x8ae584]
push ebp
push 0
push eax
call fcn.0070c660
add esp, 0xc
inc ebx
mov ecx, dword [esi + 0x8ae580]
mov al, byte [esp + ecx + 0xb4]
test al, al
je 0x49fb94
mov edx, dword [esi + 0x8ae584]
push ebp
push 1
push edx
call fcn.0070c660
add esp, 0xc
add esi, 8
cmp esi, 0xa0
jb 0x49faf0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.0055db80
mov eax, dword [eax + 0x148]
add esp, 8
cmp eax, 9
ja case.0x49fbc7.0
movzx ecx, byte [eax + 0x49fd08]
jmp dword [ecx*4 + 0x49fd00]
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0055dc40
add esp, 8
cmp eax, 2
jne 0x49fc67
call fcn.0056b3e0
test al, al
je 0x49fc03
push esi
call fcn.0055d200
add esp, 4
lea ecx, [ebp - 2]
cmp eax, ecx
sete al
test al, al
je 0x49fc38
mov al, byte [esp + 0x13]
test al, al
je 0x49fc38
push edi
push 0
push 0x190
call fcn.0070c660
push edi
push 0
push 0x190
call fcn.0070c660
push edi
push 0
push 0x190
call fcn.0070c660
add esp, 0x24
add ebx, 3
push ebp
push 0
push 0x190
call fcn.0070c660
push ebp
push 0
push 0x190
call fcn.0070c660
push ebp
push 0
push 0x190
call fcn.0070c660
add esp, 0x24
add ebx, 3
jmp case.0x49fbc7.2
cmp eax, 3
jne case.0x49fbc7.2
call fcn.0056b3e0
test al, al
je 0x49fc8a
push esi
call fcn.0055d200
add esp, 4
lea edx, [ebp - 2]
cmp eax, edx
sete al
test al, al
je 0x49fcbd
mov al, byte [esp + 0x13]
test al, al
je 0x49fcbd
push edi
push 0
push 0x191
call fcn.0070c660
add esp, 0xc
inc ebx
cmp edi, 0x67
jne 0x49fcb3
mov eax, dword [esp + 0x14]
mov dword [0x8ae578], eax
jmp 0x49fcbd
mov ecx, dword [esp + 0x14]
mov dword [0x8ae57c], ecx
push ebp
push 0
push 0x191
call fcn.0070c660
add esp, 0xc
inc ebx
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
jl 0x49f8b7
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jb 0x49f890
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc4
ret