Function at 0x40d640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40d933
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
lea eax, [edi + 0x24]
push eax
mov eax, dword [ebp + 8]
call fcn.0040be70
test eax, eax
jne 0x40d6a7
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x40d6b5
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x40d6a1
mov edx, dword [edi + 4]
push eax
push 0xf012
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x111
jne 0x40d71e
mov eax, 0x7d3
cmp ax, si
jne 0x40d6eb
shr esi, 0x10
xor ecx, ecx
cmp cx, si
jne 0x40d906
mov eax, edi
call fcn.0040fe00
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x7d1
cmp dx, si
jne 0x40d870
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40d906
mov eax, edi
call fcn.0040fd60
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 1
jne 0x40d739
push edi
call fcn.0040e870
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x40d76f
cmp esi, 0x3ea
jne 0x40d75d
call fcn.0040f6f0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x40d790
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x858
jne 0x40d7ad
push edi
call fcn.0040efc0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 5
jne 0x40d7f3
mov dword [esp + 0xc], 1
cmp esi, 1
je 0x40d7d4
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
call fcn.0040fba0
mov ecx, dword [esp + 0xc]
jmp 0x40d7db
xor ecx, ecx
mov eax, 1
mov dword [ebx], eax
test ecx, ecx
je 0x40d906
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x8003
jne 0x40d812
push esi
mov ecx, edi
call fcn.0040fe70
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x8005
jne 0x40d84d
cmp esi, 0x7d4
je 0x40d833
xor eax, eax
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov ecx, edi
call fcn.00410a10
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x8007
jne 0x40d89a
mov eax, dword [ebp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.00410680
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x7d4
cmp cx, si
jne 0x40d906
mov eax, esi
shr eax, 0x10
mov esi, edi
call fcn.00410b10
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x8008
jne 0x40d8e4
cmp dword [edi + 0x12b0], 0
je 0x40d8c4
push esi
call fcn.00410b80
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [edi + 4]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x10
jne 0x40d906
mov eax, dword [ebp + 0x14]
push eax
mov eax, esi
mov ecx, edi
call fcn.0040ee60
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.0040b2f0
cmp dword [esp + 0xc], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
jne 0x40d6a7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18