Function at 0x40b026
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov eax, ecx
push edi
push 0x401
mov dword [esp + 0x24], eax
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [ebp + 8]
mov ecx, eax
test ecx, ecx
je 0x40b092
cmp dword [ecx], 0
jne 0x40b092
mov eax, dword [ecx + 0x8c]
xor edx, edx
mov edi, dword [ebx + 0x88]
mov ecx, dword [ecx + eax*4 + 4]
test edi, edi
je 0x40b084
lea eax, [ebx + 4]
cmp ecx, dword [eax]
je 0x40b092
inc edx
add eax, 4
cmp edx, edi
jb 0x40b078
push 0
call fcn.0040b593
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x1309
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 6
xor eax, eax
mov dword [esp + 0x58], 1
pop ecx
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
xor edi, edi
cmp dword [ebx + 0x88], eax
jbe 0x40b10b
lea edx, [ebx + 0x44]
mov dword [esp + 0x14], edx
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
test dword [ebx + 0x84], eax
je 0x40b0fb
mov eax, dword [edx]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
push eax
push edi
push 0x133e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x14]
inc edi
add edx, 4
mov dword [esp + 0x14], edx
cmp edi, dword [ebx + 0x88]
jb 0x40b0d0
and dword [esp + 0xc], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp + 0xc]
push 0x130c
push esi
call edi
test eax, eax
js 0x40b135
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040afe0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
push 0
push 0x1328
push esi
call edi
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b2d0
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x24]
lea edi, [esp + 0x34]
neg eax
movsd dword es:[edi], dword [esi]
push eax
mov eax, dword [esp + 0x28]
neg eax
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x3c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
call fcn.0040b593
and dword [esp + 0x10], 0
cmp dword [ebx + 0x88], 0
mov dword [esp + 0x1c], eax
jbe 0x40b249
mov edi, dword [esp + 0xc]
lea esi, [ebx + 4]
mov dword [esp + 0x18], esi
mov ecx, dword [esi]
call fcn.0040b593
mov esi, eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x4c]
jle 0x40b1d7
sub eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
jmp 0x40b1d9
xor eax, eax
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x40b1fe
push ecx
push esi
call dword [sym.imp.USER32.dll_SetParent]
cmp dword [esp + 0x10], edi
mov eax, 0x81
push 0x41
pop ecx
cmove eax, ecx
push eax
xor eax, eax
push eax
push eax
push dword [esp + 0x54]
push dword [esp + 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov eax, dword [esp + 0x10]
add esi, 4
inc eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0x88]
jb 0x40b1ad
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea edi, [esp + 0x34]
movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x3c], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40b294
push dword [eax + 0x3c]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
push dword [eax + 0xc]
sub edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x30]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x204
push esi
push 8
xor esi, esi
lea ecx, [edi - 8]
push esi
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40b296
xor esi, esi
push 2
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x41
push esi
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x4c]
jmp 0x40b39d
and dword [esp + 0x1c], 0
cmp dword [ebx + 0x88], 0
jbe 0x40b39d
lea edi, [ebx + 4]
mov dword [esp + 0x18], edi
mov ecx, dword [edi]
call fcn.0040b593
mov ebx, eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x30]
cdq
sub eax, edx
sar edi, 1
mov esi, eax
lea eax, [esp + 0x34]
push 2
push eax
mov eax, dword [esp + 0x28]
sar esi, 1
push dword [eax + 0xc]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push esi
push edi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0x1c]
mov eax, 0x81
cmp esi, dword [esp + 0xc]
push 0x41
pop ecx
cmove eax, ecx
push eax
xor eax, eax
push eax
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x18]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ebx, dword [ebp + 8]
inc esi
add edi, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
cmp esi, dword [ebx + 0x88]
jb 0x40b2e9
push dword [esp + 0xc]
mov ecx, ebx
call fcn.0040b63c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret