Function at 0x40b913
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
and dword [ebp - 0x18], 0
and dword [ebp - 0x10], 0
push ebx
push esi
lea eax, [ebp - 0x58]
push edi
mov ebx, edx
push eax
mov dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
sub edi, dword [ebp - 0x58]
sub esi, dword [ebp - 0x54]
push ebx
inc edi
inc esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 8], eax
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 1
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40b9d2
push 0xa
push ebx
call fcn.0040d8d0
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
pop ecx
jne 0x40b997
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ebx
push eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jg 0x40b9b6
mov dword [ebp - 0x18], eax
cmp eax, edi
jle 0x40b9c0
cdq
idiv edi
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0xc]
cmp byte [eax], 0
lea ebx, [eax + 1]
je 0x40b9d2
test eax, eax
jne 0x40b97a
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
imul eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
jge 0x40ba4d
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
mov ecx, eax
push 6
sub ecx, edi
lea edi, [eax + 1]
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x60], ecx
sub eax, dword [ebp - 0x54]
inc eax
push eax
xor eax, eax
push edi
push eax
push eax
push eax
push dword [ebp - 0x14]
call ebx
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x64]
push 6
inc eax
push eax
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x20]
cmp eax, esi
jle 0x40ba96
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x20]
mov eax, ecx
push 6
sub eax, esi
xor esi, esi
add dword [ebp - 0x2c], eax
inc ecx
push ecx
push edi
push esi
push esi
push esi
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call ebx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push 6
inc eax
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
inc eax
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call ebx
jmp 0x40ba98
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40bd51
lea eax, [ebp - 0x58]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x58]
push 2
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x68]
push eax
push 0x54
push dword [ebp - 4]
call edi
push eax
call esi
lea eax, [ebp - 0x68]
push 2
push eax
push dword [ebp - 4]
push 0x54
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x40bbcb
test byte [eax + 0x1c], 2
je 0x40bbcb
lea eax, [ebp - 0x48]
push eax
push 0x56
push dword [ebp - 4]
call edi
push eax
call esi
lea eax, [ebp - 0x48]
push 2
push eax
push dword [ebp - 4]
push 0x56
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0xf0
mov eax, dword [ebp - 0x4c]
je 0x40bb56
mov ecx, dword [ebp - 0x64]
lea esi, [eax + 8]
lea edx, [ecx + 0x28]
cmp esi, edx
jge 0x40bb56
sub ecx, eax
add ecx, 0x31
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x3c]
push 4
sub ecx, dword [ebp - 0x44]
xor esi, esi
inc ecx
push ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0xffffffe0
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 2]
push eax
push 0x10
push esi
push 0x56
push dword [ebp - 4]
call edi
push eax
call ebx
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0xc], 3
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x44]
push 6
sub eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
inc eax
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call ebx
mov eax, dword [ebp + 0xc]
test byte [eax + 0x1c], 0x40
je 0x40bd51
push 0x57
xor esi, esi
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x48]
push 2
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x78]
push eax
push 0x55
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x78]
push 2
push eax
push dword [ebp - 4]
push 0x55
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0xf0
je 0x40bc55
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
add edx, 8
lea ecx, [eax + 0x28]
cmp edx, ecx
jge 0x40bc55
sub eax, dword [ebp - 0x4c]
add eax, 0x2e
mov esi, eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x14]
push 0x57
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 8], eax
push 0
push 0
push 0x31
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x14]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push 4
inc eax
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
add eax, esi
add eax, dword [ebp - 0x4c]
push eax
push dword [ebp - 0x78]
push 0
push dword [ebp - 0x14]
call ebx
sub esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add esi, dword [ebp - 0x3c]
add esi, dword [ebp - 0xc]
lea eax, [eax + esi + 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x18]
push 0x57
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0x57
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x44]
push 6
sub eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
lea eax, [eax + ecx + 3]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push esi
call ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8