Function at 0x411190
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe14
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0xe0c], eax
mov eax, dword [esp + 0xe1c]
push ebx
push ebp
mov ebp, dword [esp + 0xe20]
push esi
mov esi, dword [ebp + 0x67c]
push edi
mov dword [esp + 0x14], esi
cmp eax, 4
jne 0x4111cd
mov ebx, dword [ebp + 0x318]
jmp 0x4111dc
mov ecx, eax
imul ecx, ecx, 0x354
lea ebx, [ecx + ebp + 0x69c]
push eax
lea edx, [esp + 0x1c]
mov ecx, ebp
call fcn.0040fc20
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41120c
cmp dword [esi + 8], eax
je 0x411487
lea edi, [ebx + 0x284]
mov esi, str.Failed_to_get_current_directory_
jmp 0x41147e
lea edi, [esp + 0x18]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411213
mov edx, dword [0x42b220]
lea eax, [ebx + 0x284]
mov dword [edi], edx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411230
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411244
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x308]
sub eax, 3
je 0x4113d1
sub eax, 1
je 0x4112ee
sub eax, 2
jne 0x411483
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
test eax, eax
jne 0x4112c5
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xe20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.Failed_to_add_font_resource__s____Error:__d_
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x411483
mov edi, str.FAILURE__K7IS_FONT_Registration
jmp 0x41147e
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], 0
je 0x411483
mov edi, str.SUCCESS__K7IS_FONT_Registration
jmp 0x41147a
cmp dword [ebp + 0x328], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
je 0x411348
lea eax, [esp + 0x418]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x620]
push str._s_regsvr32.exe__s___s_
push eax
call ebx
push 0
push 1
lea ecx, [esp + 0x630]
call fcn.0040e810
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x41137d
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x411379
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411372
call eax
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x10], edi
cmp dword [esp + 0x10], 0
jne 0x4113b9
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xe20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push edx
push str.Failed_to_register__s___Error:__d_
push esi
call ebx
add esp, 0x10
cmp dword [edi + 8], 0
je 0x411483
mov edi, str.FAILURE__K7IS_DLL_Registration
jmp 0x41147e
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0
je 0x411483
mov edi, str.SUCCESS__K7IS_DLL_Registration
jmp 0x41147a
lea eax, [esp + 0x18]
add eax, 0xfffffffe
jmp 0x4113e0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4113e0
mov ecx, dword [str.__RegServer]
mov edx, dword [0x42be6c]
mov dword [eax], ecx
mov ecx, dword [0x42be70]
mov dword [eax + 4], edx
mov edx, dword [0x42be74]
mov dword [eax + 8], ecx
mov ecx, dword [0x42be78]
mov dword [eax + 0xc], edx
mov edx, dword [0x42be7c]
mov dword [eax + 0x10], ecx
push 0
push 1
lea ecx, [esp + 0x20]
mov dword [eax + 0x14], edx
call fcn.0040e810
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41146b
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xe20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push eax
push str.Failed_to_register__s___Error:__d_
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x411483
mov edi, str.FAILURE__K7IS_EXE_Registration
jmp 0x41147e
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 8], 0
je 0x411483
mov edi, str.SUCCESS__K7IS_EXE_Registration
lea esi, [esp + 0x18]
call fcn.00412cb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xe1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0xe14
ret