Function at 0x402090
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x408040]
xor eax, esp
mov dword [esp + 0xb4], eax
movups xmm0, xmmword [str.PacmanWindowClass]
mov eax, dword [0x4053e0]
mov ecx, dword [ebp + 8]
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x98], eax
lea eax, [esp + 0x78]
movups xmm0, xmmword [0x4053d0]
push esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push edi
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xc], ecx
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x24], 0x401850
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
push dword [esp + 0x10]
push 0
push 0
push eax
push edi
push 0
push 0
push 0xcb0000
push str.Pacman_2D
lea eax, [esp + 0xa8]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40869c], eax
test eax, eax
je 0x402456
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
push eax
push 0xfffffffffffffff0
push dword [0x40869c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp + 0x14]
push dword [0x40869c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40869c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x408834]
mov eax, 0x2aaaaaab
mov esi, dword [0x408830]
xor edi, edi
sub ecx, esi
mov dword [esp + 0x18], 0
imul ecx
mov dword [esp + 0xc], 0
sar edx, 2
mov eax, edx
mov dword [esp + 0x14], edi
shr eax, 0x1f
add eax, edx
je 0x402243
xor ecx, ecx
mov dword [esp + 0x10], ecx
add ecx, esi
xor eax, eax
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x402212
mov edi, dword [ecx + 0x14]
mov edx, ecx
cmp edi, 0xf
jbe 0x4021e9
mov edx, dword [ecx]
cmp byte [edx + eax], 0x50
je 0x4021fa
inc eax
cmp eax, esi
jb 0x4021e0
mov edi, dword [esp + 0x14]
jmp 0x402212
cmp dword [ecx + 0x14], 0xf
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
jbe 0x40220e
mov ecx, dword [ecx]
mov byte [ecx + eax], 0x2e
mov ecx, dword [0x408834]
mov eax, 0x2aaaaaab
mov esi, dword [0x408830]
inc edi
add dword [esp + 0x10], 0x18
sub ecx, esi
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 2
mov eax, edx
mov dword [esp + 0x14], edi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4021d2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
imul edx, ecx, 0x32
imul esi, eax, 0x32
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
push 0x1c
mov dword [esp + 0x60], 0xffff
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
lea eax, [edx + 0x32]
mov dword [esp + 0x5c], eax
lea ecx, [esi + 0x32]
lea eax, [esp + 0x48]
mov dword [esp + 0x58], ecx
mov dword [0x408698], eax
call fcn.00403b09
movaps xmm0, xmmword [0x405470]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 0x18], 0xff
movups xmmword [eax + 8], xmm0
mov ecx, dword [0x408840]
cmp ecx, dword [0x408844]
je 0x4022c6
mov dword [ecx], eax
add dword [0x408840], 4
jmp 0x4022d1
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00403790
push 0x1c
call fcn.00403b09
movaps xmm0, xmmword [0x405490]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [eax], 1
mov dword [eax + 4], 8
mov dword [eax + 0x18], 0xff00
movups xmmword [eax + 8], xmm0
mov ecx, dword [0x408840]
cmp ecx, dword [0x408844]
je 0x402317
mov dword [ecx], eax
add dword [0x408840], 4
jmp 0x402322
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00403790
push 0x1c
call fcn.00403b09
movaps xmm0, xmmword [0x405480]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [eax], 0xf
mov dword [eax + 4], 1
mov dword [eax + 0x18], 0xff0000
movups xmmword [eax + 8], xmm0
mov ecx, dword [0x408840]
cmp ecx, dword [0x408844]
je 0x402368
mov dword [ecx], eax
add dword [0x408840], 4
jmp 0x402373
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00403790
push 0x1c
call fcn.00403b09
movaps xmm0, xmmword [0x4054a0]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [eax], 0xf
mov dword [eax + 4], 8
mov dword [eax + 0x18], 0xff00ff
movups xmmword [eax + 8], xmm0
mov ecx, dword [0x408840]
cmp ecx, dword [0x408844]
je 0x4023b9
mov dword [ecx], eax
add dword [0x408840], 4
jmp 0x4023c4
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00403790
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x60]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
push 0
push eax
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call esi
test eax, eax
je 0x402423
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
lea eax, [esp + 0x60]
push eax
call edi
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x402400
mov eax, dword [0x408840]
mov edi, dword [0x40883c]
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x402456
mov esi, dword [edi]
push 0x1c
push esi
call fcn.00403e9f
add esp, 8
test esi, esi
je 0x40244d
mov dword [edi], 0x8123
add edi, 4
cmp edi, dword [esp + 0xc]
jne 0x402436
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00403afb
mov esp, ebp
pop ebp
ret 0x10