Function at 0x40b670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x10]
je 0x40b6ae
push dword [ebp + 0xc]
movzx eax, byte [ebp + 8]
push eax
push 0x8102
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
dec eax
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov bl, byte [ebp + 8]
movzx eax, bl
cmp eax, 4
ja case.default.0x40b6bd
jmp dword [eax*4 + 0x40b9f8]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40b6dd
mov eax, dword [ecx + 0x20]
add ecx, 0x20
mov eax, dword [eax + 4]
add ecx, eax
push 1
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], bl
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test byte [0x41622c], 1
jne 0x40b736
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x40b72b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x13c
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b9c1
push ecx
push esi
mov ecx, eax
call fcn.0040cc90
jmp 0x40b89e
test byte [0x41622c], 1
jne 0x40b7a3
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x40b798
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1a0
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b9c1
push ecx
push esi
mov ecx, eax
call fcn.0040d880
jmp 0x40b89e
test byte [0x41622c], 1
jne 0x40b810
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x40b805
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x15c
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b9c1
push ecx
push esi
mov ecx, eax
call fcn.0040e560
jmp 0x40b89e
test byte [0x41622c], 1
jne 0x40b87a
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x40b86f
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x348
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b9c1
push ecx
push esi
mov ecx, eax
call fcn.0040b0a0
mov edi, eax
test edi, edi
je 0x40b9c1
cmp dword [esi + 0x1c], 0
jne 0x40b8c3
mov ecx, 0x65
call fcn.0040bb20
mov dword [esi + 0x1c], eax
test eax, eax
je 0x40b9ab
cmp dword [esi + 0x20], 0
jne 0x40b8de
mov ecx, 0x66
call fcn.0040bb20
mov dword [esi + 0x20], eax
test eax, eax
je 0x40b9ab
mov eax, dword [edi]
push dword [esi + 4]
mov eax, dword [eax + 0x30]
mov ecx, edi
call eax
test al, al
je 0x40b9ab
mov ecx, dword [esi + 0x14]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edi
test ecx, ecx
je 0x40b911
mov eax, dword [ecx + 0x20]
add ecx, 0x20
mov eax, dword [eax + 4]
add ecx, eax
push 1
mov eax, dword [ecx]
call dword [eax + 4]
push 1
call dword [sym.imp.USER32.dll_ReplyMessage]
mov eax, dword [esi + 0x14]
push dword [eax + 0x34]
push dword [eax + 0x30]
push 1
push 0
push 0
call dword [sym.imp.USER32.dll_MonitorFromPoint]
push eax
push ecx
mov ecx, esi
call fcn.0040bff0
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x14]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
sub esp, 0xc
call fcn.00407300
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.0040ba10
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40b9a0
cmp word [ecx], 0
je 0x40b9a0
mov eax, dword [0x4164a4]
push 0x10
mov eax, dword [eax + 4]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040ba90
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x40b9c1
mov eax, dword [edi + 0x20]
push 1
mov ecx, dword [eax + 4]
add ecx, 0x20
add ecx, edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b9e5
mov eax, dword [0x4164a4]
push 0x10
mov eax, dword [eax + 4]
mov ecx, esi
push dword [eax + 0x10]
push dword [eax + 0x14]
call fcn.0040ba90
push 0
call dword [sym.imp.USER32.dll_ReplyMessage]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8