Function at 0x402920
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0640
mov eax, dword fs:[0]
push eax
sub esp, 0x80
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
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x4028e0
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 - 0x8c]
call fcn.004418d0
cmp dword [eax + 0x14], 7
jbe 0x4029e7
mov eax, dword [eax]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x14], eax
cmp ecx, 7
jbe 0x402a29
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402a1f
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 - 0x74]
call fcn.004418d0
mov ebx, eax
cmp dword [ebx + 0x14], 7
jbe 0x402a63
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 - 0x5c]
call fcn.004418d0
mov edi, eax
cmp dword [edi + 0x14], 7
jbe 0x402a93
mov edi, dword [edi]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 0x40]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x40]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0x80000000
push ebx
push edi
push 0x80088
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x48]
mov esi, eax
cmp ecx, 7
jbe 0x402b26
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b66
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 7
jbe 0x402b76
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402b6c
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 - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
test esi, esi
je 0x402bbf
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push 0xff
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x24]
cmp ecx, 0xf
jbe 0x402bf5
mov edx, dword [ebp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402beb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402beb
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
mov eax, esi
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 0x2c