Function at 0x40e4b9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x48]
sub edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp - 0x4c]
push dword [ebp + 0xc]
inc edi
inc esi
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push ebx
push 0x31
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 4]
test ebx, ebx
mov dword [ebp - 0x10], 1
je 0x40e5b3
push 0xa
push ebx
call fcn.00410ed0
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x40e543
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00410a00
add esp, 0xc
push 0x420
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x14]
sub eax, ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x64]
jg 0x40e57a
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], ebx
jg 0x40e582
mov dword [ebp - 8], ebx
cmp eax, edi
jle 0x40e58c
cdq
idiv edi
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
cmp byte [eax], 0xa
jne 0x40e5a6
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x40e5b6
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
je 0x40e5b6
lea ebx, [eax + 1]
jmp 0x40e526
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, dword [ebp - 8]
jg 0x40e5d6
mov ebx, dword [ebp - 8]
imul ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x18], edi
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
jge 0x40e633
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
mov ecx, eax
sub ecx, edi
add dword [ebp - 0x58], ecx
lea edi, [eax + 1]
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
push 6
inc eax
push eax
push edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
push 6
inc eax
push eax
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x60]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 8], esi
jle 0x40e67d
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 8]
mov eax, ecx
sub eax, esi
add dword [ebp - 0x24], eax
push 6
inc ecx
push ecx
push edi
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
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 + 8]
call ebx
jmp 0x40e67f
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x40e953
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
call esi
push 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x60]
push eax
push 0x54
push dword [ebp + 8]
call edi
push eax
call esi
push 2
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
push 0x54
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0
je 0x40e7b2
test byte [eax + 0x1c], 2
je 0x40e7b2
lea eax, [ebp - 0x40]
push eax
push 0x56
push dword [ebp + 8]
call edi
push eax
call esi
push 2
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push 0x56
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0xf0
mov eax, dword [ebp - 0x44]
je 0x40e73d
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + 0x28]
lea esi, [eax + 8]
cmp esi, edx
jge 0x40e73d
sub ecx, eax
add ecx, 0x31
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
push 4
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
xor esi, esi
push esi
push 0x56
push dword [ebp + 8]
call edi
push eax
call ebx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
add dword [ebp - 8], 3
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push 6
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 + 8]
call ebx
mov eax, dword [ebp + 0x14]
test byte [eax + 0x1c], 0x40
je 0x40e953
push 0x57
push dword [ebp + 8]
xor esi, esi
call edi
lea ecx, [ebp - 0x40]
push ecx
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x80]
push eax
push 0x55
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
push 0x55
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0xf0
je 0x40e83c
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 0x28]
add edx, 8
cmp edx, ecx
jge 0x40e83c
sub eax, dword [ebp - 0x44]
add eax, 0x2e
mov esi, eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x14]
push 0x57
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00410a00
add esp, 0xc
push 0x420
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x14]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x68]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
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 - 0x1c]
push eax
mov eax, dword [ebp - 8]
add eax, esi
add eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x80]
push 0
push dword [ebp + 0xc]
call ebx
sub esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
add esi, dword [ebp - 0x34]
add esi, dword [ebp - 8]
lea eax, [eax + esi + 8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
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]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push 6
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 - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10