Function at 0x10124f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10372d8]
push ebx
mov dword [ebp - 4], eax
call fcn.01012069
push 0x148
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x1012523
mov ecx, eax
call fcn.01011957
jmp 0x1012525
xor eax, eax
cmp eax, ebx
mov dword [0x1037380], eax
jne 0x1012538
mov eax, 0x8007000e
jmp 0x101275a
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x1012574
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1012563
call esi
jmp 0x1012759
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1012759
cmp eax, 3
jne 0x1012582
mov word [ebp - 0x20c], bx
jmp 0x1012596
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov word [eax], bx
push 0x10027ec
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01007b43
test eax, eax
jge 0x10125b6
mov eax, 0x80070057
jmp 0x1012759
push 0x10027d0
lea eax, [ebp - 0x210]
push eax
push 0x10027c4
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0100d577
add esp, 0x14
test eax, eax
jl 0x10125ac
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 0x1012607
mov eax, 0x80070002
jmp 0x1012759
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.01016550
cmp eax, ebx
jl 0x1012759
push edi
mov edi, dword [0x1037380]
push 0x45
xor eax, eax
pop ecx
add edi, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [0x1037380]
mov dword [eax + 0xc], 0x114
mov eax, dword [0x1037380]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.0102e096
push eax
push 0x100
lea eax, [ebp - 0x410]
push eax
push 0x65
call fcn.01016633
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 [0x1037380]
mov dword [ecx + 4], eax
mov eax, dword [0x1037380]
mov eax, dword [eax + 4]
cmp eax, ebx
pop edi
jne 0x10126b1
push 0x40010
push 0x10027a4
push 0x1002738
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x8007000e
jmp 0x1012759
lea ecx, [ebp - 0x410]
push ecx
push esi
push eax
call fcn.01007263
call fcn.0101190f
mov ecx, dword [0x1037380]
push 0x2a
mov dword [ecx + 0x134], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10126e1
call fcn.0101246c
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x10126f6
mov ecx, eax
call fcn.0101204e
jmp 0x10126f8
xor eax, eax
cmp eax, ebx
mov dword [0x1037384], eax
je 0x10126a7
call fcn.0102a1fc
cmp eax, ebx
jl 0x1012759
call fcn.0102b819
cmp eax, ebx
jl 0x1012759
call fcn.0102c8d2
cmp eax, ebx
jl 0x1012759
call fcn.0101f7fb
cmp eax, ebx
jl 0x1012759
call fcn.01022b13
cmp eax, ebx
jl 0x1012759
call fcn.01030ee5
cmp eax, ebx
jl 0x1012759
call fcn.01013b9c
call fcn.010266b0
cmp eax, ebx
jl 0x1012759
call fcn.01027baa
cmp eax, ebx
jl 0x1012759
mov ecx, dword [0x1037380]
call fcn.010120d5
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01034242
leave
ret