Function at 0x40cc40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6267b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x6bd8a0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], edi
je 0x40cc9b
lea ecx, [esi + 0x18]
mov dword [esi], 0x65437c
call fcn.0040b080
mov dword [ebp - 0xd0], 1
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov bl, byte [ebp + 0x10]
mov dword [esi + ecx], vtable.Interface.0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esi + eax], vtable.Window.0
mov dword [esi + 8], edi
mov edi, dword [ebp + 8]
xor eax, eax
push 4
mov byte [esi + 0xc], bl
mov dword [esi + 4], edi
mov dword [ebp - 0x100], 0x30
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x66
push edi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe4], 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x66
push edi
mov dword [ebp - 0xe8], eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x100]
push ecx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xf8], 0x47f7f0
mov dword [ebp - 0xd8], str.FishdomWindow
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xfc], 0x4b
call dword [sym.imp.USER32.dll_RegisterClassExA]
lea edx, [ebp - 0xb0]
push edx
push 0xffffffffffffffff
push 0
mov word [ebp - 0x8c], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov eax, dword [ebp - 0x44]
cmp eax, 0x320
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jb 0x40cd80
cmp ecx, 0x258
jae 0x40cd89
mov bl, 1
mov byte [esi + 0xc], 1
mov byte [ebp + 0x10], bl
cmp eax, 0x320
mov byte [ebp + 0x17], 0
jne 0x40cd9c
test bl, bl
jne 0x40cd9c
mov byte [ebp + 0x17], 1
xor eax, eax
test bl, bl
mov dword [ebp - 0xb8], eax
je 0x40cdb2
mov dword [ebp - 0xb8], 8
test bl, bl
mov dword [ebp - 0xb4], eax
jne 0x40cdc6
mov dword [ebp - 0xb4], 0xca0000
push eax
push edi
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xb8]
push 0x258
push 0x320
push 0
push 0
push edi
push 0x65435c
push str.FishdomWindow
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 8], eax
push 0
mov dword [0x6bea48], eax
call dword [sym.imp.USER32.dll_UpdateWindow]
test bl, bl
je 0x40ce49
mov ecx, dword [esi + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffff0
push ecx
call edi
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi + 8]
push edx
push 0xffffffffffffffec
push eax
call edi
mov ecx, dword [esi + 8]
push 0x20
push 0x258
push 0x320
push 0
push 0
push 0xffffffffffffffff
push ecx
jmp 0x40cf19
mov eax, dword [esi + 8]
lea edx, [ebp - 0xc8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
mov edx, dword [esi + 8]
sub edi, ebx
mov ebx, dword [ebp - 0xc8]
sub ebx, ecx
mov ecx, dword [ebp - 0xb4]
push ecx
push 0xfffffffffffffff0
push edx
add edi, 0x258
add ebx, 0x320
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [esi + 8]
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc0]
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x10]
cdq
sub eax, edx
mov edx, dword [ebp - 0xc4]
sar eax, 1
sar ecx, 1
sub eax, ecx
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xbc]
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov cl, byte [ebp + 0x17]
test cl, cl
je 0x40cefb
mov eax, edi
xor ecx, ecx
neg eax
jmp 0x40cf01
mov ecx, dword [ebp - 0xb4]
mov edx, dword [esi + 8]
push 0x20
add edi, 0x258
push edi
add ebx, 0x320
push ebx
push eax
push ecx
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x6bea50]
inc edx
mov dword [ebp - 4], 1
mov dword [0x6bea50], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, 0x6c3c60
mov byte [ebp - 4], 2
call fcn.00446220
mov ebx, dword [0x6bea50]
mov edx, dword [ebp + 0xc]
dec ebx
mov dword [0x6bea50], ebx
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.006122a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10