Function at 0x40e010
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4c400c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4cd900
push 0x67
push edi
call esi
push 0x64
push 0x4cd830
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x40e250
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], 0x6d
mov dword [esp + 0x3c], 0x4cd830
call esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push 0x4cd900
push 0x4cd830
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x40e109
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 0x10
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80080
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 2
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 2
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x58]
mov dword [0x4cd8fc], esi
push eax
push 0
push esi
push 0x40dc80
push 0
push 0
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40e174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x6d
push edi
mov dword [0x4cd8f8], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x44]
push 0
push eax
call esi
test eax, eax
je 0x40e1e6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x5c]
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40e1d5
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x3c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
jne 0x40e1b0
mov edi, dword [0x4cd8f8]
test edi, edi
je 0x40e22d
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0xa
nop dword [eax + eax]
push 0x2710
push edi
call ebx
cmp eax, 0x102
jne 0x40e216
mov eax, esi
dec esi
test eax, eax
jg 0x40e200
mov edi, dword [0x4cd8f8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4cd8f8], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 0x10