Function at 0x40b390
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45463a
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x48277c]
test eax, eax
jne 0x40b3fd
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0xa54], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40b3ef
mov ecx, eax
call fcn.004122b0
jmp 0x40b3f1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 0x90
mov word [ebp - 0xa50], cx
push eax
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
call fcn.00406870
xor eax, eax
push 0x206
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Fonts
lea eax, [ebp - 0x218]
push eax
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push str.font_segoeui.ttf
push eax
lea eax, [ebp - 0xa38]
push eax
call esi
push str.segoeui.ttf
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push str.font_segoeuib.ttf
push eax
lea eax, [ebp - 0x830]
push eax
call esi
push str.segoeuib.ttf
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push eax
xor bl, bl
call edi
mov esi, dword [sym.imp.GDI32.dll_AddFontResourceW]
test eax, eax
je 0x40b59a
lea eax, [ebp - 0x420]
push eax
call esi
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x40b5bb
lea eax, [ebp - 0x628]
push eax
call esi
test eax, eax
jne 0x40b5c3
test bl, bl
je 0x40b675
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa54]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa54], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40b60c
lea eax, [ebp - 0xa54]
push eax
push str.segoeui.ttf
mov ecx, str.Segoe_UI_OpenType_
call fcn.00446bf0
jmp 0x40b614
push dword [ebp - 0xa54]
call esi
lea eax, [ebp - 0xa54]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa54], 0
call edi
test eax, eax
jne 0x40b651
lea eax, [ebp - 0xa54]
push eax
push str.segoeuib.ttf
mov ecx, str.Segoe_UI_Bold_OpenType_
call fcn.00446bf0
jmp 0x40b659
push dword [ebp - 0xa54]
call esi
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xa3c], 8
jb 0x40b68d
push dword [ebp - 0xa50]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret