Function at 0x1012865
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10372b8]
push ebx
mov dword [ebp - 4], eax
call fcn.010123de
push 0x148
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x1012898
mov ecx, eax
call fcn.01011ccc
jmp 0x101289a
xor eax, eax
cmp eax, ebx
mov dword [0x1037360], eax
jne 0x10128ad
mov eax, 0x8007000e
jmp 0x1012af2
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x10128e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10128d8
call esi
jmp 0x1012af1
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1012af1
cmp eax, 3
jne 0x10128f7
mov word [ebp - 0x20c], bx
jmp 0x101290b
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov word [eax], bx
push 0x100280c
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01007c70
test eax, eax
jge 0x101292b
mov eax, 0x80070057
jmp 0x1012af1
push 0x10027f0
lea eax, [ebp - 0x210]
push eax
push 0x10027e4
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0100d7d2
add esp, 0x14
test eax, eax
jl 0x1012921
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x101297c
mov eax, 0x80070002
jmp 0x1012af1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0101696c
cmp eax, ebx
jl 0x1012af1
push edi
mov edi, dword [0x1037360]
push 0x45
xor eax, eax
pop ecx
add edi, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [0x1037360]
mov dword [eax + 0xc], 0x114
mov eax, dword [0x1037360]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.0102e593
push eax
push 0x100
lea eax, [ebp - 0x410]
push eax
push 0x65
call fcn.01016a53
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov ecx, dword [0x1037360]
mov dword [ecx + 4], eax
mov eax, dword [0x1037360]
mov eax, dword [eax + 4]
cmp eax, ebx
pop edi
jne 0x1012a26
push 0x40010
push 0x10027c4
push 0x1002758
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x8007000e
jmp 0x1012af1
lea ecx, [ebp - 0x410]
push ecx
push esi
push eax
call fcn.01007bfb
mov esi, eax
cmp esi, ebx
jge 0x1012a57
mov eax, dword [0x1037360]
push dword [eax + 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x1037360]
mov dword [eax + 4], ebx
pop ecx
mov eax, esi
jmp 0x1012af1
call fcn.01011c84
mov ecx, dword [0x1037360]
push 0x2a
mov dword [ecx + 0x134], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1012a79
call fcn.010127e1
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1012a8e
mov ecx, eax
call fcn.010123c3
jmp 0x1012a90
xor eax, eax
cmp eax, ebx
mov dword [0x1037364], eax
je 0x1012a1c
call fcn.0102a6c5
cmp eax, ebx
jl 0x1012af1
call fcn.0102bcf8
cmp eax, ebx
jl 0x1012af1
call fcn.0102cdcf
cmp eax, ebx
jl 0x1012af1
call fcn.0101fc8e
cmp eax, ebx
jl 0x1012af1
call fcn.01022fa9
cmp eax, ebx
jl 0x1012af1
call fcn.010316d6
cmp eax, ebx
jl 0x1012af1
call fcn.01013fb8
call fcn.01026b56
cmp eax, ebx
jl 0x1012af1
call fcn.01028093
cmp eax, ebx
jl 0x1012af1
mov ecx, dword [0x1037360]
call fcn.0101244a
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01034a90
leave
ret