Function at 0x4187d5
Capabilities:
Terminate process

Disassembly:
sub esp, 0x48
mov eax, dword [0x4a6074]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x54]
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 + 0x5c]
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], eax
call fcn.00418589
test eax, eax
js 0x418a2b
lea ecx, [edi + 0xdc]
call fcn.00418676
test eax, eax
js 0x418a2b
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 0x418880
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 0x418870
or eax, ebp
mov dword [edi + 0x24], eax
test ecx, 0x100080
jne 0x418880
or eax, 0x2000
mov dword [edi + 0x24], eax
test cl, 1
je 0x418889
push 3
jmp 0x418890
test cl, 2
je 0x418898
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 0x418a2b
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 0x418a2b
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]
push 0x58
mov dword [0x4a89e4], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [0x4a89e0], eax
call esi
push 0x5a
push ebp
mov dword [0x4a89f8], eax
call esi
push ebp
push dword [edi + 0x10]
mov dword [0x4a89f4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, edi
call fcn.00419458
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 0x418a42
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418a42
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
call eax
test eax, eax
js 0x418a2b
mov eax, dword [esp + 0x10]
lea ebp, [edi + 0x18]
push ebp
push 0x493ce4
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 0x418a2b
test ebx, ebx
je 0x4189a2
cmp dword [ebx + 0x24], 0
je 0x4189a2
mov ecx, dword [ebp]
push dword [ebx + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x418a2b
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.00418507
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x10]
sub ecx, 0xa
call fcn.0041851c
mov ecx, dword [ebp]
mov dword [edi + 0x64], eax
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
js 0x418a2b
cmp dword [edi + 0x10], 0
je 0x418a16
test dword [edi + 0x1c], 0x2000
jne 0x418a16
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 0x418a26
mov ecx, edi
call fcn.004194ff
xor eax, eax
inc eax
jmp 0x418a2d
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b0c6
add esp, 0x48
ret 0x10
push 0
call fcn.00461dae
int3