Function at 0x40ecff
Capabilities:
Terminate process

Disassembly:
sub esp, 0x64
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
inc ebp
and dword [edi + 8], 0
lea ecx, [edi + 0x68]
mov dword [edi + 0x184], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], eax
call fcn.0040eab1
test eax, eax
js 0x40ef70
lea ecx, [edi + 0xdc]
call fcn.0040eb9e
test eax, eax
js 0x40ef70
mov edx, dword [edi + 0x24]
push 4
or edx, 0x8080
mov dword [edi + 0x24], edx
pop ecx
mov dword [edi + 0x1c], ecx
test ebx, ebx
je 0x40edaa
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x20], eax
mov ecx, dword [ebx + 0x20]
mov eax, ecx
shr eax, 0x17
xor eax, edx
mov dword [edi + 0x1c], ecx
and eax, ebp
xor eax, edx
mov dword [edi + 0x24], eax
test ecx, 0x4000
je 0x40ed9a
or eax, ebp
mov dword [edi + 0x24], eax
test ecx, 0x100080
jne 0x40edaa
or eax, 0x2000
mov dword [edi + 0x24], eax
test cl, 1
je 0x40edb3
push 3
jmp 0x40edba
test cl, 2
je 0x40edc2
push 2
pop eax
mov word [edi + 0xf4], ax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
je 0x40ef70
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40ef70
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push dword [esp + 0x14]
push ebp
call esi
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov dword [0x4a47a4], eax
mov eax, dword [esp + 0x34]
push ebp
mov dword [0x4a47a0], eax
call esi
push 0x5a
push ebp
mov dword [0x4a47b8], eax
call esi
push ebp
push dword [edi + 0x10]
mov dword [0x4a47b4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, edi
call fcn.0040f99d
or dword [edi + 0x24], 0x20000
lea ecx, [esp + 0x18]
push str.Riched20.dll
call fcn.0040162b
lea ecx, [esp + 0x18]
call fcn.0040150e
lea ecx, [esp + 0x18]
mov dword [edi + 0x180], eax
call fcn.0040183f
mov eax, dword [edi + 0x180]
test eax, eax
je 0x40ef87
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ef87
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
call eax
test eax, eax
js 0x40ef70
mov eax, dword [esp + 0x10]
lea ebp, [edi + 0x18]
push ebp
push 0x48ecb4
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x40ef70
test ebx, ebx
je 0x40eee7
cmp dword [ebx + 0x24], 0
je 0x40eee7
mov ecx, dword [ebp]
push dword [ebx + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x40ef70
mov eax, dword [ebx + 0x1c]
lea esi, [edi + 0x40]
mov dword [esi], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x1c]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
mov dword [edi + 0x4c], eax
mov ecx, dword [ebx + 0x14]
sub ecx, 0xa
call fcn.0040ea2f
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x10]
sub ecx, 0xa
call fcn.0040ea44
mov ecx, dword [ebp]
mov dword [edi + 0x64], eax
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
js 0x40ef70
cmp dword [edi + 0x10], 0
je 0x40ef5b
test dword [edi + 0x1c], 0x2000
jne 0x40ef5b
push 0xfffffffffffffff0
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffcfffff
push eax
push 0xfffffffffffffff0
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [edi + 0x1c], 0x800
jne 0x40ef6b
mov ecx, edi
call fcn.0040fa44
xor eax, eax
inc eax
jmp 0x40ef72
xor eax, eax
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004473b9
add esp, 0x64
ret 0x10
push 0
call fcn.0045dddf
int3