Function at 0x41a3a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x88]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jne 0x41a57e
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x419130
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
call fcn.004e6d6d
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, esp
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp esi, esp
call fcn.004516c0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.ColorPalette
mov esi, esp
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp esi, esp
call fcn.004516c0
and eax, 0xffff
test eax, eax
jne 0x41a444
call fcn.004b11f7
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
cmp esi, esp
call fcn.004516c0
mov dword [ebp - 0x30], eax
mov esi, esp
push 8
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp esi, esp
call fcn.004516c0
mov dword [ebp - 0x34], eax
mov esi, esp
push 0xa
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp esi, esp
call fcn.004516c0
mov dword [ebp - 0x38], eax
mov esi, esp
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.004516c0
lea ecx, [ebp - 0x48]
call fcn.004e74b7
lea ecx, [ebp - 0x48]
call fcn.004e76b2
push eax
mov ecx, dword [ebp - 4]
call fcn.004e0dff
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x34]
sub edx, 0xbf
cmp dword [ebp - 0x48], edx
jle 0x41a4e4
mov eax, dword [ebp - 0x34]
sub eax, 0xbf
mov dword [ebp - 0x48], eax
jmp 0x41a4f1
cmp dword [ebp - 0x48], 0
jge 0x41a4f1
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x38]
sub ecx, 0x96
cmp dword [ebp - 0x44], ecx
jle 0x41a50b
mov edx, dword [ebp - 0x44]
sub edx, 0x96
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
add eax, 0x96
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x48]
add ecx, 0xbf
mov dword [ebp - 0x40], ecx
mov esi, esp
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004e75b6
push eax
lea ecx, [ebp - 0x48]
call fcn.004e75a0
push eax
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
push 0x90800000
push str.Palatte
push str.ColorPalette
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp esi, esp
call fcn.004516c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x44], 0
jne 0x41a57e
xor eax, eax
jmp 0x41a5df
mov esi, esp
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
push 0x401
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, esp
call fcn.004516c0
mov esi, esp
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.004516c0
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
cmp esi, esp
call fcn.004516c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], 1
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x88
cmp ebp, esp
call fcn.004516c0
mov esp, ebp
pop ebp
ret