Function at 0x40d680
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x40d6c5
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x40d6fa
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x34], 0
je 0x40d747
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x70], 0
je 0x40d73d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x70], 0
je 0x40d76a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x70], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x40d7a0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x38], 0
push 0x18
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
call fcn.00402030
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x3c], 0
je 0x40d7d6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x3c], 0
push 0x18
push 0
mov eax, dword [ebp - 0x14]
add eax, 0x58
push eax
call fcn.00402030
add esp, 0xc
push 0x208
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
push ecx
call fcn.00402030
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x27c], 0
je 0x40d828
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x27c], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x280], 0
je 0x40d864
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x280], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x284], 0
je 0x40d895
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x284]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401c7f
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x284], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x288], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x28c], 0
je 0x40d8e7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x28c], 0
je 0x40d8e7
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28c], 0
push 0x14
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x290
push ecx
call fcn.00402030
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x2a4], 0
je 0x40d92e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2a4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401c7f
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2a4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2a8], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x580], 0
je 0x40d964
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x580]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x580], 0
mov eax, 1
mov esp, ebp
pop ebp
ret