Function at 0x40ad40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x432018]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, 0x7f00
mov dword [esp + 0x18], ebx
push edi
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push edi
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 3
mov dword [esp + 0x28], eax
mov edi, 0x4328a8
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x14]
pop ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x40afaa
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
mov eax, closesocket
push ecx
push esi
push ecx
push ecx
push eax
push eax
push eax
push eax
push 0xc80000
push edi
push edi
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80080
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ecx
push ecx
mov ecx, esp
push 0x3a98
call fcn.0040b154
call fcn.0040ac01
pop ecx
pop ecx
push 0x40
push 0x258
push 0x1f4
mov eax, 0xf423f
push eax
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x433b38]
add eax, eax
cdq
idiv ebx
push esi
mov dword [0x433b40], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [0x433b3c], eax
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov dword [0x433b50], eax
mov eax, dword [0x433b40]
push ebx
push 0x20
push 1
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push dword [0x433b50]
mov dword [0x433b48], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x433b40]
push 0xff0062
push eax
push eax
push ebx
push ebx
push dword [0x433b50]
call dword [sym.imp.GDI32.dll_PatBlt]
push 1
mov dword [0x433b4c], ebx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
push ebx
mov esi, eax
call fcn.004157d8
pop ecx
push eax
call fcn.004157c6
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40af03
cmp dword [esp + 0x3c], 0x12
je 0x40af88
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40aec1
call edi
cmp eax, esi
jbe 0x40aec1
inc dword [0x433b4c]
call fcn.0040b063
mov eax, dword [0x433b40]
push 0xcc0020
push ebx
push ebx
push dword [0x433b50]
push eax
push eax
push ebx
push ebx
push dword [0x433b3c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [0x433b4c]
push str.FRAME_:__d
push 0x433b58
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, 0x433b58
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40af57
sub ecx, edx
sar ecx, 1
push ecx
push 0x433b58
push ebx
push 4
push dword [0x433b3c]
call dword [sym.imp.GDI32.dll_TextOutW]
add esi, 0x10
call fcn.0040d17e
jmp 0x40aec1
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411120
mov esp, ebp
pop ebp
ret 0x10