Function at 0x408770
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x34]
xor esi, esi
push eax
mov dword [esp + 0x3c], 0xffffff
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov ecx, dword [0x4390a8]
push esi
push esi
push ecx
mov esi, ebx
mov edi, eax
call fcn.00405590
add esp, 0xc
push 0
push 0
push 0x80
mov dword [ebp + 0x14], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call edi
push 0
push 1
push 0x80
push ebx
call edi
push ebp
push 8
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0x190
push 9
xor ecx, ecx
mov edx, ebx
call fcn.00404ac0
add esp, 0xc
mov esi, eax
push 1
push esi
push 0x30
push ebx
mov dword [esp + 0x38], esi
mov dword [ebp + 0x2c], esi
call edi
mov edx, dword [ebp]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [ebp + 4]
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004086d0
mov edi, dword [0x431a58]
add esp, 0xc
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004086d0
mov eax, dword [ebp + 8]
add dword [esp + 0x20], 0xa
add dword [esp + 0x28], 4
and eax, 0xf
add esp, 0xc
xor ecx, ecx
cmp dword [0x431a88], eax
jne 0x408864
mov edx, dword [0x431a8c]
mov ecx, dword [0x431a90]
mov dword [esp + 0x64], edx
cmp dword [0x431a94], eax
jne 0x40887c
mov edx, dword [0x431a98]
mov ecx, dword [0x431a9c]
mov dword [esp + 0x64], edx
cmp dword [0x431aa0], eax
jne 0x408894
mov edx, dword [0x431aa4]
mov ecx, dword [0x431aa8]
mov dword [esp + 0x64], edx
cmp dword [0x431aac], eax
jne 0x4088ac
mov edx, dword [0x431ab0]
mov ecx, dword [0x431ab4]
mov dword [esp + 0x64], edx
cmp dword [0x431ab8], eax
jne 0x4088c4
mov edx, dword [0x431abc]
mov ecx, dword [0x431ac0]
mov dword [esp + 0x64], edx
cmp dword [0x431ac4], eax
jne 0x4088dc
mov edx, dword [0x431ac8]
mov ecx, dword [0x431acc]
mov dword [esp + 0x64], edx
cmp dword [0x431ad0], eax
jne 0x4088f3
mov eax, dword [0x431ad4]
mov ecx, dword [0x431ad8]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
test eax, 0x4000
je 0x408905
or dword [esp + 0x64], 0x200
mov edi, dword [esp + 0x14]
add edi, 8
imul edi, ecx
and eax, 0xf0
sub edi, 8
mov dword [esp + 0x10], 0
cmp eax, 0x30
jne 0x40892e
mov dword [esp + 0x10], 0x7f03
jmp 0x408959
cmp eax, 0x40
jne 0x40893d
mov dword [esp + 0x10], 0x7f04
jmp 0x408959
cmp eax, 0x10
jne 0x40894c
mov dword [esp + 0x10], 0x7f01
jmp 0x408959
cmp eax, 0x20
jne 0x4089c0
mov dword [esp + 0x10], 0x7f02
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x3f3
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push esi
push 0x170
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x2c]
jmp 0x4089d7
push 0
push 0x3f3
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov ecx, dword [esp + 0x24]
lea eax, [edx + ecx + 0x22]
lea ecx, [edx + 0x22]
cmp ecx, eax
jge 0x4089f0
cmp eax, edi
jle 0x4089ee
mov dword [esp + 0x18], eax
cmp ecx, eax
jle 0x4089fa
cmp ecx, edi
jle 0x4089fa
mov dword [esp + 0x18], ecx
cmp edi, eax
jle 0x408a06
cmp edi, ecx
jle 0x408a06
mov dword [esp + 0x18], edi
cmp dword [esp + 0x10], 0
je 0x408a16
add edx, 0xa
mov dword [esp + 0x10], edx
jmp 0x408a1e
mov dword [esp + 0x10], 0xe
mov eax, dword [esp + 0x18]
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
sar edi, 1
lea esi, [eax + edx + 0x50]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
sub eax, esi
cdq
push 4
sub eax, edx
push esi
sar eax, 1
push ecx
push eax
mov eax, dword [esp + 0x68]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 4]
mov dword [ebp + 0x1c], eax
add eax, edx
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x20]
add eax, 0x28
push ecx
mov dword [ebp + 0x20], 0x28
mov dword [ebp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x20]
add edx, 0x37
mov ecx, 0x431a18
mov dword [ebp + 0x18], eax
mov esi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov eax, dword [ecx]
mov edx, dword [esp + 0x64]
test edx, eax
je 0x408b2b
mov edx, dword [0x435f18]
mov ecx, dword [ecx - 8]
push 0
push edx
mov edx, dword [esp + 0x1c]
add eax, 0x200
push eax
mov eax, dword [esp + 0x28]
push ebx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push esi
push 0x50010020
push ecx
push str.K7InstallerBtnV1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
add eax, 8
add esi, eax
test edi, edi
je 0x408b23
mov edx, dword [esp + 0x28]
push 0
push edx
push 0x30
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add ecx, 0xc
cmp ecx, 0x431a90
mov dword [esp + 0x24], ecx
jl 0x408abe
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test dword [ebp + 8], 0x1000
je 0x408b5d
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x20], 1
je 0x408b7b
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret