Function at 0x417c6f
Capabilities:
Terminate process

Disassembly:
sub esp, 0x48
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
and dword [edi + 8], 0
mov dword [edi + 0x184], eax
mov eax, dword [esp + 0x5c]
inc ebp
lea ecx, [edi + 0x68]
xor edx, edx
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], eax
call fcn.00417a4f
test eax, eax
js 0x417ec4
lea ecx, [edi + 0xdc]
call fcn.00417b3a
test eax, eax
js 0x417ec4
or dword [edi + 0x24], 0x8080
mov dword [edi + 0x1c], 4
test ebx, ebx
je 0x417d17
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x1c], eax
shr eax, 0x17
xor eax, dword [edi + 0x24]
and eax, ebp
xor eax, dword [edi + 0x24]
test dword [edi + 0x1c], 0x4000
mov dword [edi + 0x24], eax
je 0x417d07
or eax, ebp
mov dword [edi + 0x24], eax
test dword [edi + 0x1c], 0x100080
jne 0x417d17
or dword [edi + 0x24], 0x2000
test byte [edi + 0x1c], 1
je 0x417d21
push 3
jmp 0x417d29
test byte [edi + 0x1c], 2
je 0x417d31
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 0x417ec4
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 0x417ec4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push dword [esp + 0x14]
push ebp
call esi
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x48b230], eax
mov eax, dword [esp + 0x18]
push 0x58
push ebp
mov dword [0x48b22c], eax
call esi
push 0x5a
push ebp
mov dword [0x48b264], eax
call esi
push ebp
push dword [edi + 0x10]
mov dword [0x48b260], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, edi
call fcn.004188c5
or dword [edi + 0x24], 0x20000
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x180], eax
test eax, eax
je 0x417edb
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417edb
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
call eax
test eax, eax
js 0x417ec4
mov eax, dword [esp + 0x10]
lea ebp, [edi + 0x18]
mov ecx, dword [eax]
push ebp
push 0x47d808
push 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 0x417ec4
test ebx, ebx
je 0x417e3b
cmp dword [ebx + 0x24], 0
je 0x417e3b
mov ecx, dword [ebp]
push dword [ebx + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x417ec4
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 + 0x1c]
add eax, dword [ebx + 0x14]
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.004179a5
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x10]
sub ecx, 0xa
call fcn.004179ba
mov ecx, dword [ebp]
mov dword [edi + 0x64], eax
mov eax, dword [ecx]
push esi
call dword [eax + 0x24]
test eax, eax
js 0x417ec4
cmp dword [edi + 0x10], 0
je 0x417eaf
test dword [edi + 0x1c], 0x2000
jne 0x417eaf
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 0x417ebf
mov ecx, edi
call fcn.0041896c
xor eax, eax
inc eax
jmp 0x417ec6
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bed
add esp, 0x48
ret 0x10
push 0
call fcn.0043a95d
int3