Function at 0x40c460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426005
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x433074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa0], edi
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f3
push dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0xc8], eax
call eax
push 0x427f1c
mov esi, eax
lea ecx, [ebp + 0x20]
push 0x427f24
mov dword [ebp - 0xd4], esi
call fcn.00406160
push 0x427f28
push 0x427f30
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f34
push 0x427f3c
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f40
push 0x427f48
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f4c
push 0x427f54
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f58
push 0x427f60
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f64
push 0x427f6c
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f70
push 0x427f78
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f7c
push 0x427f84
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f88
push 0x427f90
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427f94
push 0x427f9c
lea ecx, [ebp + 0x20]
call fcn.00406160
push 0x427fa0
push 0x427ef8
lea ecx, [ebp + 0x20]
call fcn.00406160
push SysReAllocString
push dword [ebp + 0x24]
lea eax, [ebp - 0xac]
push esi
push eax
call fcn.0040e250
push dword [ebp - 0xa8]
lea eax, [ebp - 0xbc]
push dword [ebp - 0xac]
push esi
push dword [edi + 4]
push eax
call fcn.0040f8c0
mov eax, dword [ebp - 0xb8]
add esp, 0x24
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x10]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0xbc]
cmp eax, ecx
jg 0x40c5e3
mov eax, ecx
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.0040e250
push dword [ebp - 0xcc]
lea eax, [ebp - 0xb4]
push dword [ebp - 0xd0]
push esi
push dword [edi + 4]
push eax
call fcn.0040f8c0
mov eax, dword [ebp + 0x18]
add esp, 0x24
mov edx, dword [ebp + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0xb4]
cmp ecx, eax
jge 0x40c681
push 0xc8
push dword [edi + 4]
call fcn.004023e0
mov ecx, dword [ebp + 0x18]
add esp, 8
mov edx, dword [ebp + 0x10]
sub ecx, edx
cmp ecx, eax
jle 0x40c681
fild dword [ebp - 0xb4]
mov dword [ebp - 0xa8], ecx
fstp qword [ebp - 0xbc]
fld qword [ebp - 0xbc]
fmul qword [0x428018]
fild dword [ebp - 0xa8]
fstp qword [ebp - 0xac]
fcomp qword [ebp - 0xac]
mov edx, dword [ebp + 0x10]
fnstsw ax
test ah, 1
je 0x40c681
mov ecx, dword [ebp - 0xb4]
lea eax, [edx + ecx]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb0]
add eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40c6bd
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40c711
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
neg edi
mov dword [ebp - 0xa8], eax
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
add edx, edi
mov edi, dword [ebp - 0xa0]
neg eax
add ecx, eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0xa8]
add eax, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xcc], 0
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x30]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc0], eax
test eax, eax
jle 0x40c827
mov ecx, dword [edi + 0x24]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jle 0x40c785
mov dword [ebp - 0xc0], ecx
cmp eax, ecx
jg 0x40c779
mov dword [ebp - 0xc0], eax
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebp - 0xc4], eax
push 0x3f4
push dword [edi + 4]
call dword [ebp - 0xc8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push ecx
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x9c], eax
sub eax, ecx
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xb8]
imul ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xcc], edx
cmp eax, ecx
jge 0x40c808
mov eax, dword [ebp - 0xa4]
add eax, ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x28], eax
mov eax, edx
mov edx, dword [ebp - 0x24]
imul eax, dword [ebp - 0xc4]
add edx, eax
add dword [edi + 0x80], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x24], edx
jmp 0x40c85e
push 0xb
push dword [edi + 4]
call fcn.00402280
mov edi, eax
mov eax, dword [ebp - 0xa0]
push 2
push dword [eax + 4]
call fcn.00402280
mov edx, dword [ebp - 0x24]
add esp, 0x10
lea ecx, [edi + eax]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x7c], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], edx
mov dword [eax], ecx
call fcn.004027c0
add esp, 8
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 0x40ca44
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x9c], eax
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x68], ecx
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x70], edx
cmp ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0xa4], eax
jg 0x40c93e
sub eax, dword [ebp - 0x3c]
mov ecx, edx
sub ecx, dword [ebp - 0x1c]
cmp ecx, eax
jle 0x40c9a1
mov eax, dword [ebp - 0x34]
sub edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x3c]
cmp edx, eax
jle 0x40c952
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
push 1
push 1
push esi
call dword [sym.imp.USER32.dll_ShowScrollBar]
push 2
push dword [edi + 4]
call fcn.00402280
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x38]
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x9c], edx
sub eax, dword [ebp - 0x20]
sub edx, dword [ebp - 0x40]
cmp eax, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
jle 0x40c99c
mov ecx, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
jmp 0x40c9a7
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
jge 0x40c9be
sub ecx, eax
mov eax, dword [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
jmp 0x40c9de
cmp ecx, dword [ebp - 0x9c]
jle 0x40c9e1
sub ecx, eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
mov dword [ebp - 0x9c], eax
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
jge 0x40c9ef
sub edx, eax
jmp 0x40c9fd
mov ecx, dword [ebp - 0xa4]
cmp edx, ecx
jle 0x40ca06
sub edx, eax
sub ecx, edx
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40ca44
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.00402810
add esp, 8
cmp dword [ebp - 0xa8], 0
jle 0x40cb1e
mov eax, dword [ebp - 0xcc]
imul eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb0], ecx
cmp ecx, eax
jle 0x40cae3
mov esi, ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x24], esi
sub esi, eax
xor edi, edi
test edi, edi
je 0x40caa0
mov eax, edi
cdq
idiv dword [ebp - 0xc0]
test edx, edx
jne 0x40caa0
add esi, dword [ebp - 0xcc]
mov dword [ebp - 0x9c], edx
lea eax, [edi + 0x3f4]
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 4]
call dword [ebp - 0xc8]
push 0x15
push 0
push 0
push esi
push dword [ebp - 0x9c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0xb8]
inc edi
add dword [ebp - 0x9c], eax
cmp edi, dword [ebp - 0xa8]
jl 0x40ca83
jmp 0x40cb12
mov esi, dword [ebp - 0xa0]
xor edi, edi
jmp 0x40caf0
lea eax, [edi + 0x3f4]
push eax
push dword [esi + 4]
call dword [ebp - 0xc8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc edi
cmp edi, dword [ebp - 0xa8]
jl 0x40caf0
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x20]
push 0x14
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x14
push ecx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [eax], ecx
call fcn.004027c0
mov eax, dword [ebp - 0x54]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x58]
add esp, 8
sub eax, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x60]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x80], eax
add edx, 0xfffffff0
mov dword [edi + 0x7c], ecx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cbbf
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 0x40cbd7
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.00414c7c
mov esp, ebp
pop ebp
ret 0x20