Function at 0x40b860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4242e5
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x431078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x9c], eax
push 0x3f1
push dword [eax + 4]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x425e1c
mov edi, eax
lea ecx, [ebp + 0x20]
push 0x425e24
mov dword [ebp - 0xc4], edi
call fcn.004050f0
push 0x425e28
push 0x425e30
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e34
push 0x425e3c
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e40
push 0x425e48
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e4c
push 0x425e54
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e58
push 0x425e60
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e64
push 0x425e6c
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e70
push 0x425e78
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e7c
push 0x425e84
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e88
push 0x425e90
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425e94
push 0x425e9c
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x425ea0
push 0x425df8
lea ecx, [ebp + 0x20]
call fcn.004050f0
push 0x7fffffff
push dword [ebp + 0x24]
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0040cae0
push dword [ebp - 0x34]
lea eax, [ebp - 0xc0]
push dword [ebp - 0x38]
push edi
push eax
call fcn.0040db20
mov ecx, dword [ebp + 0x18]
add esp, 0x20
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc0]
cmp eax, ecx
jg 0x40b9c4
mov eax, ecx
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0040cae0
push dword [ebp - 0xa0]
lea eax, [ebp - 0xb8]
push dword [ebp - 0xa4]
push edi
push eax
call fcn.0040db20
mov eax, dword [ebp + 0x18]
add esp, 0x20
sub eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xb8]
cmp ecx, eax
jge 0x40bab1
push 0
mov dword [ebp - 0xac], 0xc8
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40ba49
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x60
push eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
mov dword [ebp - 0xac], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
neg eax
sbb eax, eax
not eax
and esi, eax
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xb0], ecx
cmp ecx, dword [ebp - 0xac]
jle 0x40baa0
fild dword [ebp - 0xb8]
fstp qword [ebp - 0xc0]
fld qword [ebp - 0xc0]
fmul qword [0x425f40]
fild dword [ebp - 0xb0]
fstp qword [ebp - 0xc0]
fcomp qword [ebp - 0xc0]
fnstsw ax
test ah, 1
je 0x40baa0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], ecx
test esi, esi
je 0x40bab1
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
add eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xb4]
add eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40bafa
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40bafa
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xa0], eax
jmp 0x40bb3a
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp + 0xc]
sar eax, 1
neg eax
add edx, eax
mov eax, ecx
sub eax, dword [ebp - 0x20]
add dword [ebp - 0x18], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
sub eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], 0
lea ecx, [eax + 0x64]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [eax + 0x68]
sub ecx, dword [eax + 0x64]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0xac], esi
test esi, esi
jle 0x40bbf5
mov eax, dword [ebp - 0x9c]
push 0x3f2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push ecx
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
imul esi, eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
cmp eax, esi
jge 0x40bbea
lea eax, [esi + edx]
mov dword [ebp - 0x18], eax
mov ecx, eax
mov eax, dword [ebp - 0xa8]
add dword [ebp - 0x14], eax
jmp 0x40bbfe
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x9c]
push 0xfffffffffffffff0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov esi, dword [eax + 4]
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push esi
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test dword [ebp - 0xa0], 0x40000000
mov dword [ebp - 0x34], eax
jne 0x40bc52
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x40bc52
mov eax, 1
jmp 0x40bc54
xor eax, eax
push dword [ebp - 0x34]
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MonitorFromPoint]
xor ecx, ecx
mov dword [ebp - 0x98], 0x28
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40be6b
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, esi
sub eax, dword [ebp - 0x30]
cmp eax, ecx
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], edx
jg 0x40bd0e
mov ecx, eax
mov eax, edx
sub ecx, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x2c]
cmp eax, ecx
jle 0x40bd5b
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x2c]
cmp edx, eax
jle 0x40bd22
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], eax
push 1
push 1
push edi
call dword [sym.imp.USER32.dll_ShowScrollBar]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x48]
add esi, eax
sub ecx, dword [ebp - 0x50]
mov eax, esi
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
cmp eax, ecx
jle 0x40bd5b
mov esi, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x30], eax
jge 0x40bd70
sub eax, dword [ebp - 0x30]
add esi, eax
mov eax, dword [ebp - 0x50]
jmp 0x40bd87
mov eax, dword [ebp - 0x48]
cmp esi, eax
jle 0x40bd8d
sub eax, esi
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
sub eax, dword [ebp - 0x30]
add esi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
cmp esi, eax
jge 0x40bda3
sub eax, esi
add edx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
jmp 0x40bdb4
cmp edx, ecx
jle 0x40bdb7
sub ecx, edx
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x2c], ecx
sub eax, esi
add edx, eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40be6b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x9c]
push 0xfffffffffffffff0
mov esi, dword [eax + 4]
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push esi
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test dword [ebp - 0xa0], 0x40000000
mov dword [ebp - 0x34], eax
jne 0x40be27
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x40be27
mov esi, 1
jmp 0x40be29
xor esi, esi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push esi
push dword [ebp - 0xa0]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
test eax, eax
je 0x40be6b
mov eax, dword [ebp - 0x60]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x1c]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
jmp 0x40be71
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0xac], 0
jle 0x40bf21
sub eax, dword [ebp - 0xa8]
xor esi, esi
cmp eax, ecx
jle 0x40bece
mov dword [ebp - 0x14], eax
xor edi, edi
nop
lea eax, [esi + 0x3f2]
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
push 0x15
push 0
push 0
push ecx
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add edi, dword [ebp - 0xb0]
inc esi
cmp esi, dword [ebp - 0xac]
jl 0x40be90
jmp 0x40bf1b
mov edi, dword [ebp - 0xac]
jmp 0x40bee0
lea eax, [esi + 0x3f2]
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, edi
jl 0x40bee0
mov esi, dword [ebp - 0xb4]
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.0040e0e0
mov eax, dword [esi]
mov dword [esi + 4], eax
mov edi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x14
push eax
mov eax, dword [ebp - 0x28]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x9c]
push edx
push ecx
push 0
push dword [eax + 4]
call esi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 0
push edi
call esi
mov edx, dword [ebp + 0x20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bf80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40bf98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041345d
mov esp, ebp
pop ebp
ret 0x20