Function at 0x40f113
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
xor eax, eax
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x54]
push edi
mov ebx, edx
push eax
mov dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
sub edi, dword [ebp - 0x54]
sub esi, dword [ebp - 0x50]
push ebx
inc edi
inc esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 1
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40f214
push 0xa
push ebx
call fcn.00411150
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
pop ecx
jne 0x40f1a1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00410c20
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x420
push eax
mov eax, dword [ebp - 0x20]
sub eax, ebx
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], ecx
jg 0x40f1db
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 8], ecx
jg 0x40f1e3
mov dword [ebp - 8], ecx
cmp eax, edi
jle 0x40f1ed
cdq
idiv edi
add dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x20]
inc dword [ebp - 0x18]
cmp byte [ebx], 0xa
jne 0x40f204
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x40f214
cmp byte [ebx], 0
je 0x40f214
inc ebx
cmp dword [ebp - 0x20], 0
jne 0x40f184
push dword [ebp - 0x44]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
cmp eax, ecx
jg 0x40f23b
mov dword [ebp - 0x58], ecx
mov eax, ecx
imul eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 8], eax
jge 0x40f298
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, eax
push 6
sub ecx, edi
lea edi, [eax + 1]
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x64], ecx
sub eax, dword [ebp - 0x50]
inc eax
push eax
xor eax, eax
push edi
push eax
push eax
push eax
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
push 6
inc eax
push eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 4]
call ebx
cmp dword [ebp - 8], esi
jle 0x40f2e2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 8]
mov eax, ecx
push 6
sub eax, esi
xor esi, esi
add dword [ebp - 0x24], eax
inc ecx
push ecx
push edi
push esi
push esi
push esi
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push 6
inc eax
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call ebx
jmp 0x40f2e4
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40f5c1
lea eax, [ebp - 0x54]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x54]
push 2
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x6c]
push eax
push 0x54
push dword [ebp - 4]
call edi
push eax
call esi
lea eax, [ebp - 0x6c]
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 0x40f417
test byte [eax + 0x1c], 2
je 0x40f417
lea eax, [ebp - 0x40]
push eax
push 0x56
push dword [ebp - 4]
call edi
push eax
call esi
lea eax, [ebp - 0x40]
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 - 0x30]
push eax
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0xf0
mov eax, dword [ebp - 0x48]
je 0x40f3a2
mov ecx, dword [ebp - 0x68]
lea esi, [eax + 8]
lea edx, [ecx + 0x28]
cmp esi, edx
jge 0x40f3a2
sub ecx, eax
add ecx, 0x31
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x34]
push 4
sub ecx, dword [ebp - 0x3c]
xor esi, esi
inc ecx
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffffe0
push ecx
mov ecx, dword [ebp - 8]
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 - 0x34]
add dword [ebp - 8], 3
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
add eax, dword [ebp - 8]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x3c]
push 6
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 8]
lea eax, [eax + ecx + 1]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
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 0x40f5c1
push 0x57
xor esi, esi
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x40]
push 2
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x8c]
push eax
push 0x55
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x8c]
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 - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0xf0
je 0x40f4a7
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x48]
add edx, 8
lea ecx, [eax + 0x28]
cmp edx, ecx
jge 0x40f4a7
sub eax, dword [ebp - 0x48]
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 - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0x31
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push 0x10
push 0
push eax
call fcn.00410c20
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x420
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 - 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
push 4
inc eax
push eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 8]
add eax, esi
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x8c]
push 0
push dword [ebp - 0xc]
call ebx
sub esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
add esi, dword [ebp - 0x34]
add esi, dword [ebp - 8]
lea eax, [eax + esi + 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x14], 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 - 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x3c]
push 6
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 8]
lea eax, [eax + ecx + 3]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push esi
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8