Function at 0x4118f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525581
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x593a34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124], edi
mov esi, dword [ebp + 8]
lea eax, [edi + 0x118]
mov dword [ebp - 0x158], edi
push eax
mov dword [ebp - 0x120], esi
mov dword [edi + method.Gdiplus::PrivateFontCollection.virtual_0], vtable.Gdiplus::PrivateFontCollection.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [edi + 0x11c], eax
lea eax, [edi + 0x124]
mov dword [ebp - 4], 0
push eax
mov dword [edi + method.Gdiplus::PrivateFontCollection.virtual_0], vtable.Gdiplus::PrivateFontCollection.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [edi + 0x128], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 0x160], xmm0
mov dword [edi + 0x170], 0
mov dword [edi + 0x174], 7
mov word [edi + 0x160], ax
mov dword [edi + 0x17c], eax
mov dword [edi + 0x180], eax
mov dword [edi + 0x184], eax
movups xmmword [edi + 0x230], xmm0
mov dword [edi + 0x240], eax
mov dword [edi + 0x244], 7
mov word [edi + 0x230], ax
movq qword [edi + 0x24c], xmm0
push 0x10
mov byte [ebp - 4], 5
mov dword [edi + 0x268], eax
mov dword [edi + 0x26c], eax
call fcn.004f9a9f
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x268], eax
push 3
mov byte [ebp - 4], 6
mov dword [edi + 4], esi
call fcn.004bd2f0
push 0x9c
call fcn.004f9a9f
add esp, 0xc
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x411a32
mov ecx, eax
call fcn.0041c670
jmp 0x411a34
xor eax, eax
mov dword [edi + 0x248], eax
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x1b4], eax
cmp eax, 0x1e
jl 0x411a64
cmp eax, 0xf0
jle 0x411a73
mov dword [edi + 0x1b4], 0x3c
mov eax, 0x3c
movsd xmm1, qword [0x52b180]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
push 0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [edi + 0x1b8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [edi + 0x1bc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [edi + 0x1ac], eax
call esi
movsd xmm1, qword [0x52b148]
mov esi, eax
mov dword [edi + 0x1b0], esi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si edx, xmm0
mov dword [edi + 0x1c4], edx
cmp edx, 0x1e0
jge 0x411b04
mov dword [edi + 0x1c4], 0x1e0
mov edx, 0x1e0
movd xmm0, edx
sub esi, edx
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x1ac]
mulsd xmm0, qword [0x52b168]
cvttsd2si ecx, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
sub eax, ecx
mov dword [edi + 0x1c0], ecx
divss xmm0, dword [0x52b190]
movss dword [edi + 0x1c8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov dword [edi + 0x1cc], eax
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [edi + 0x1d0], eax
call fcn.0040f6c0
mov ecx, edi
mov byte [edi + 0x179], al
call fcn.004164a0
mov ecx, edi
call fcn.00414540
mov ecx, edi
call fcn.00416090
mov eax, dword [ebp - 0x120]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0xc4
push eax
mov dword [ebp - 0x154], 0x30
mov dword [ebp - 0x150], 3
mov dword [ebp - 0x14c], 0x413f10
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x13c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [ebp - 0x138], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp dword [0x59529c], 8
mov dword [ebp - 0x134], eax
mov eax, 0x595288
cmovae eax, dword [0x595288]
push 0xc4
push dword [ebp - 0x140]
mov dword [ebp - 0x130], 0x6d
mov dword [ebp - 0x12c], eax
call esi
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [0x59529c], 8
lea eax, [edi + 0xc]
push 0
push 0
push 0
push 0
push dword [edi + 0x1c4]
mov ecx, 0x595288
push dword [edi + 0x1c0]
cmovae ecx, dword [0x595288]
push dword [edi + 0x1d0]
push dword [edi + 0x1cc]
push 0x80020000
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 8], eax
test eax, eax
je 0x411cf0
push edi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [edi + 0x1c4]
push dword [edi + 0x1c0]
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 1
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [ebp + 0x14]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [edi], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f9a6e
mov esp, ebp
pop ebp
ret 0x10
push str.Failed_to_create_window___err:
lea ecx, [ebp - 0x28]
call fcn.0040aa40
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004189b0
add esp, 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00412540
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.0040aeb0
push 0x52adc8
lea ecx, [ebp - 0x28]
call fcn.00412560
lea ecx, [ebp - 0x28]
call fcn.004143b0
push eax
lea ecx, [ebp - 0x164]
call fcn.00411e50
push 0x58b554
lea eax, [ebp - 0x164]
push eax
call fcn.004fb445
int3