Function at 0x408350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5243cc
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x592830]
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 - 0x12c], edi
mov dword [ebp - 0x128], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
lea eax, [edi + 0x118]
mov dword [ebp - 0x184], edi
mov esi, dword [sym.imp.gdiplus.dll_GdipNewPrivateFontCollection]
push eax
mov dword [edi + method.Gdiplus::PrivateFontCollection.virtual_0], vtable.Gdiplus::PrivateFontCollection.0
mov dword [eax], 0
call esi
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 esi
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
mov byte [ebp - 4], 5
push 0x10
mov dword [edi + 0x268], eax
mov dword [edi + 0x26c], eax
call fcn.004f952f
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x268], eax
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 6
push 3
mov dword [edi + 4], eax
call fcn.004bccb0
push 0x9c
call fcn.004f952f
add esp, 0xc
mov dword [ebp - 0x128], eax
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00412d70
mov byte [ebp - 4], 6
mov dword [edi + 0x248], eax
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x1b4], eax
cmp eax, 0x1e
jl 0x4084c8
cmp eax, 0xf0
jle 0x4084d7
mov dword [edi + 0x1b4], 0x3c
mov eax, 0x3c
movsd xmm1, qword [0x587d50]
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 [0x587cf8]
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 0x408568
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 [0x587d28]
cvttsd2si ecx, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
sub eax, ecx
mov dword [edi + 0x1c0], ecx
divss xmm0, dword [0x587d70]
movss dword [edi + 0x1c8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, esi
xor esi, esi
cvtdq2pd xmm0, xmm0
mov dword [edi + 0x1cc], eax
mov dword [ebp - 0x124], esi
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [edi + 0x1d0], eax
lea eax, [ebp - 0x124]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408622
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 4
push eax
push 4
lea eax, [ebp - 0x128]
push eax
push 0x14
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x408633
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov ecx, edi
setne al
mov byte [edi + 0x179], al
call fcn.00408a40
mov ecx, edi
call fcn.00409120
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov byte [ebp - 4], 8
push 4
mov dword [ebp - 0x120], 0
call fcn.004f9564
mov esi, dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyList]
lea ecx, [ebp - 0x120]
add esp, 4
mov dword [ebp - 0x124], eax
push ecx
push eax
push 1
push dword [edi + 0x118]
call esi
mov dword [ebp - 0x128], eax
test eax, eax
jne 0x4086d8
xor esi, esi
cmp dword [ebp - 0x120], esi
jle 0x4086d2
lea edi, [ebp - 0x140]
mov eax, dword [ebp - 0x124]
push edi
push dword [eax + esi*4]
call dword [sym.imp.gdiplus.dll_GdipCloneFontFamily]
inc esi
add edi, 8
cmp esi, dword [ebp - 0x120]
jl 0x4086b0
mov edi, dword [ebp - 0x12c]
mov esi, dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyList]
push dword [ebp - 0x124]
call fcn.004f955f
mov eax, dword [ebp - 0x128]
add esp, 4
cmp dword [ebp - 0x120], 0
mov dword [edi + 0x11c], eax
je 0x4089cf
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov byte [ebp - 4], 9
push 4
mov dword [ebp - 0x120], 0
call fcn.004f9564
add esp, 4
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x120]
push ecx
push eax
push 1
push dword [edi + 0x124]
call esi
mov dword [ebp - 0x128], eax
test eax, eax
jne 0x408782
xor esi, esi
cmp dword [ebp - 0x120], esi
jle 0x408782
lea edi, [ebp - 0x138]
nop dword [eax]
mov eax, dword [ebp - 0x124]
push edi
push dword [eax + esi*4]
call dword [sym.imp.gdiplus.dll_GdipCloneFontFamily]
inc esi
add edi, 8
cmp esi, dword [ebp - 0x120]
jl 0x408760
mov edi, dword [ebp - 0x12c]
push dword [ebp - 0x124]
call fcn.004f955f
mov eax, dword [ebp - 0x128]
add esp, 4
cmp dword [ebp - 0x120], 0
mov dword [edi + 0x128], eax
jne 0x4087af
push str.Niciun_bold_font_gasit_
jmp 0x4089d4
push 0x108
call fcn.004f952f
add esp, 4
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xa
movss xmm3, dword [edi + 0x1c8]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push dword [edi + 0x1f0]
mov ecx, eax
push dword [edi + 0x1c4]
push dword [edi + 0x1c0]
call fcn.00403750
push dword [ebp - 0x138]
mov esi, dword [sym.imp.gdiplus.dll_GdipDeleteFontFamily]
mov dword [edi + 0x274], eax
mov byte [edi + 0x178], 0
call esi
mov byte [ebp - 4], 6
push dword [ebp - 0x140]
call esi
mov eax, dword [ebp - 0x130]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0xc4
push eax
mov dword [ebp - 0x180], 0x30
mov dword [ebp - 0x17c], 3
mov dword [ebp - 0x178], 0x409ca0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x168], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [ebp - 0x164], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp dword [0x597ac0], 8
mov dword [ebp - 0x160], eax
mov eax, 0x597aac
cmovae eax, dword [0x597aac]
push 0xc4
push dword [ebp - 0x16c]
mov dword [ebp - 0x15c], 0x6d
mov dword [ebp - 0x158], eax
call esi
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [0x597ac0], 8
lea eax, [edi + 0xc]
push 0
push 0
push 0
push 0
push dword [edi + 0x1c4]
mov ecx, 0x597aac
push dword [edi + 0x1c0]
cmovae ecx, dword [0x597aac]
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
jne 0x40896c
push str.Failed_to_create_window___err:
lea ecx, [ebp - 0x28]
call fcn.00402e60
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00407c90
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.0040ddb0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00403230
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040dda0
lea ecx, [ebp - 0x28]
call fcn.00403740
push eax
jmp 0x4089d4
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.004f929f
mov esp, ebp
pop ebp
ret 0x10
push str.Niciun_font_gasit_
lea ecx, [ebp - 0x150]
call fcn.00411a10
push 0x58c500
lea eax, [ebp - 0x150]
push eax
call fcn.004fbc4b
int3