Function at 0x407930
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x424b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xc]
push edi
test eax, eax
mov dword [esp + 0x14], ebx
jne 0x40795e
mov eax, 0x426230
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
lea eax, [esp + 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edx
push 0
push 0
push ecx
push eax
push 1
mov edi, eax
mov ebp, ecx
call ebx
sub eax, ebp
xor ebp, ebp
sar eax, 1
push eax
push ebp
call ebx
sub eax, edi
sar eax, 1
push eax
push 0x80880000
push ebp
push str.nckSetupMainWindowClass
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
cmp ebx, ebp
jne 0x4079dc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
cmp esi, ebp
je 0x407a7e
mov al, byte [esp + 0x13]
mov edi, str.ShowWindow_m_hWnd__SW_NORMAL__
mov byte [esp + 0x18], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebp
push ecx
push str.ShowWindow_m_hWnd__SW_NORMAL__
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebp
call fcn.00402b60
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebp
push ecx
call fcn.004012f0
mov ecx, eax
call fcn.00401360
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x407a6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407a61
cmp al, 0xff
je 0x407a61
mov edx, dword [esp + 0x14]
dec al
mov byte [ecx], al
push 1
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407b2d
push ecx
call fcn.0040c880
add esp, 4
mov edx, dword [esp + 0x14]
push 1
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407b2d
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00402800
mov edi, str.ShowWindow_m_hWnd__SW_HIDE__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00402ca0
test al, al
je 0x407ad6
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.ShowWindow_m_hWnd__SW_HIDE__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 1
push ecx
call fcn.004012f0
mov ecx, eax
call fcn.00401360
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
test eax, eax
je 0x407b1c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407b13
cmp al, 0xff
je 0x407b13
dec al
mov byte [ecx], al
jmp 0x407b1c
push ecx
call fcn.0040c880
add esp, 4
mov edx, dword [esp + 0x14]
push 0
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ebp, ebp
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or al, 0x80
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call fcn.00402800
mov edi, str._Finish_CMainWindow::mwInitInstance__.
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00402ca0
test al, al
je 0x407ba7
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, str._Finish_CMainWindow::mwInitInstance__.
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 2
push ecx
call fcn.004012f0
mov ecx, eax
call fcn.00401360
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00402800
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret