Function at 0x408110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0670
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x407710
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f06
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmova ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
add eax, ecx
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
cmova ecx, dword [ebp + 0x10]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x80]
call fcn.004418d0
cmp dword [eax + 0x14], 7
jbe 0x4081c2
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
cmp ecx, 7
jbe 0x408201
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4081f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4081f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x20]
cmova ecx, dword [ebp + 0x10]
add eax, ecx
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
cmova ecx, dword [ebp + 0x10]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.004418d0
mov ebx, eax
cmp dword [ebx + 0x14], 7
jbe 0x40823b
mov ebx, dword [ebx]
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x20]
cmova ecx, dword [ebp + 0x10]
add eax, ecx
cmp dword [ebp + 0x24], 0xf
lea ecx, [ebp + 0x10]
cmova ecx, dword [ebp + 0x10]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.004418d0
mov edi, eax
cmp dword [edi + 0x14], 7
jbe 0x40826b
mov edi, dword [edi]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
push 0
push 0x3ac
push 0x3f2
push 1
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x1d6
push eax
push 0
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x1f9
push eax
push 0x80000000
push ebx
push edi
push 0x80008
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x3c]
mov esi, eax
cmp ecx, 7
jbe 0x4082f2
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4082e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408332
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 7
jbe 0x408342
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408338
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408338
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
test esi, esi
je 0x408416
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
movzx eax, byte [0x4bdd90]
push 2
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push esi
mov dword [0x4bdd94], esi
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [0x4bdd98], eax
mov dword [0x4bdd9c], 0x582
mov dword [0x4bdda0], 0x53c
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x4bdda0]
mov dword [0x4bdda4], eax
push dword [0x4bdd9c]
push dword [0x4bdd98]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [0x4bdda4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x24]
cmp ecx, 0xf
jbe 0x40840f
mov edx, dword [ebp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408405
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40843c
push ecx
push edx
call fcn.004af678
add esp, 8
mov eax, 1
jmp 0x40844e
mov ecx, dword [ebp + 0x24]
cmp ecx, 0xf
jbe 0x40844c
mov edx, dword [ebp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408442
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408442
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 0x24