Function at 0x4b6fc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x144], ebx
mov ebx, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4b7444
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov al, dl
cmp eax, 8
ja case.default.0x4b7019
jmp dword [eax*4 + 0x4b7020]
mov edx, 1
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
mov eax, esi
call fcn.004b692c
mov edx, eax
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
mov edx, dword [esi + 0x2d4]
inc edx
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
mov edx, dword [esi + 0x2d4]
dec edx
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
test byte [esi + 0x367], 0x80
setne al
and eax, 0x7f
mov edx, dword [esi + 0x2b8]
sub edx, eax
add edx, dword [esi + 0x2d4]
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
test byte [esi + 0x367], 0x80
setne al
and eax, 0x7f
mov edx, dword [esi + 0x2b8]
sub edx, eax
push edx
mov edx, dword [esi + 0x2d4]
pop eax
sub edx, eax
mov eax, esi
call fcn.004abed0
jmp case.default.0x4b7019
mov byte [esi + 0x428], 1
mov eax, esi
call fcn.004b692c
cmp eax, 0x7fff
jle 0x4b711f
push 0x7fff
movsx eax, bx
push eax
mov eax, esi
call fcn.004b692c
add eax, dword [esi + 0x2b8]
dec eax
push eax
call sub.kernel32.dll_MulDiv
mov edx, eax
mov eax, esi
call fcn.004abed0
jmp 0x4b7129
movsx edx, bx
mov eax, esi
call fcn.004abed0
test byte [esi + 0x368], 8
je case.default.0x4b7019
call fcn.004aca20
mov ebx, eax
mov eax, dword [esi + 0x268]
mov edx, dword [eax + 8]
mov eax, ebx
call fcn.00465a24
mov eax, dword [esi + 0x268]
mov al, byte [eax + 0xc]
sub al, 1
jae 0x4b71bb
lea eax, [ebp - 0x138]
push eax
mov edx, dword [esi + 0x2d4]
mov eax, esi
call fcn.004b69a4
mov dword [ebp - 0x140], eax
mov byte [ebp - 0x13c], 0
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [0x59959c]
call fcn.004062f4
mov eax, dword [ebp - 0x144]
xor ecx, ecx
pop edx
call fcn.0040a110
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x108]
mov ecx, 0xff
call fcn.004045c4
jmp 0x4b7250
lea eax, [ebp - 0x148]
push eax
mov edx, dword [esi + 0x2d4]
mov eax, esi
call fcn.004b69a4
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
mov eax, esi
call fcn.004b692c
mov edx, eax
sub edx, dword [esi + 0x2d4]
mov eax, dword [esi + 0x2b8]
call fcn.0042f8bc
mov edx, eax
add edx, dword [esi + 0x2d4]
mov eax, esi
call fcn.004b69a4
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [0x599ba0]
call fcn.004062f4
mov eax, dword [ebp - 0x15c]
mov ecx, 1
pop edx
call fcn.0040a110
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x108]
mov ecx, 0xff
call fcn.004045c4
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x108]
call fcn.0040458c
mov ecx, dword [ebp - 0x160]
mov edx, 0xc8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xd8]
test byte [esi + 0x368], 1
je 0x4b7346
push 0x14
call sub.user32.dll_GetSystemMetrics
mov edi, eax
lea eax, [ebp - 0x134]
xor ecx, ecx
mov edx, 0x1c
call fcn.00402e14
mov dword [ebp - 0x134], 0x1c
mov dword [ebp - 0x130], 0x17
lea eax, [ebp - 0x134]
push eax
mov eax, esi
call fcn.0046c0bc
mov edx, eax
mov ecx, 1
mov eax, esi
call fcn.004b74d4
mov eax, esi
call fcn.004652cc
mov edx, edi
add edx, edx
sub eax, edx
mov dword [ebp - 0x164], eax
fild dword [ebp - 0x164]
fild dword [ebp - 0x11c]
fild dword [ebp - 0x128]
fdivp st(1)
fmulp st(1)
call fcn.00402bd0
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x114]
shr edx, 1
add eax, edx
add edi, eax
push edi
mov eax, esi
call fcn.00465288
sub eax, dword [ebp - 0x110]
sub eax, 4
lea ecx, [ebp - 0x140]
pop edx
call fcn.004190d8
lea edx, [ebp - 0x140]
lea ecx, [ebp - 8]
mov eax, esi
call fcn.0046539c
jmp 0x4b7376
mov eax, esi
call fcn.00465288
sub eax, dword [ebp - 0x110]
sub eax, 4
lea ecx, [ebp - 0x140]
mov edx, 0xa
call fcn.004190d8
lea edx, [ebp - 0x140]
lea ecx, [ebp - 8]
mov eax, esi
call fcn.0046539c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.user32.dll_OffsetRect
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x108]
call fcn.0040458c
mov ecx, dword [ebp - 0x168]
lea edx, [ebp - 0x118]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xd0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x88]
jmp case.default.0x4b7019
mov byte [esi + 0x428], 0
test byte [esi + 0x368], 8
je case.default.0x4b7019
push 0
call fcn.004aca20
call fcn.0046c0bc
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x7c]
cmp word [esi + 0x402], 0
je 0x4b7400
mov cl, 1
mov edx, esi
mov eax, dword [esi + 0x404]
call dword [esi + 0x400]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b744b
lea eax, [ebp - 0x168]
call fcn.00404328
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.0040434c
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.0040434c
lea eax, [ebp - 0x138]
call fcn.00404328
ret