Function at 0x10046340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1044a964]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004637b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_UnregisterClassA]
cmp dword [ebx + 0xc], 0
je 0x1004638d
cmp dword [ebx + 0x10], 0
jne 0x100463a8
cmp dword [ebx + 0x14], 0
je 0x100463a8
lea eax, [ebp - 0x1c]
push eax
push 0x18
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
push 0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0x3000
mov dword [ebp - 0x2c], 0x100460f0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x1e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7f02
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x100464d9
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x11
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, dword [ebx + 0xc]
mov esi, eax
sub esi, dword [ebx + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push eax
push 0
push 0
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push esi
push edi
push SysReAllocString
push 0x10078104
push dword [ebx + 0x18]
push 0x80088
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebx + 4], eax
pop edi
test eax, eax
je 0x100464d9
cmp dword [0x1044c0a0], 0
mov ecx, eax
je 0x100464b8
cmp dword [ebx + 8], 0
je 0x100464b8
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [0x1044c0a0]
mov ecx, esi
push 1
push 0
push dword [ebx + 8]
push dword [ebx + 4]
call dword [0x10077410]
call esi
mov ecx, dword [ebx + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x32
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [ebx + 0x14], 0
je 0x10046529
mov eax, dword [ebx + 4]
test eax, eax
je 0x10046529
cmp dword [0x1044c0a0], 0
je 0x10046529
cmp dword [ebx + 8], 0
je 0x10046529
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [0x1044c0a0]
mov ecx, esi
push 1
push 0
push dword [ebx + 8]
push dword [ebx + 4]
call dword [0x10077410]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ce42
mov esp, ebp
pop ebp
ret