Function at 0x1012bb1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x101f8e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x8004250b
cmp edi, eax
mov dword [ebp - 0xa14], ebx
mov esi, 0x400
jg 0x1012cba
je 0x1012cae
mov eax, 0x80042453
cmp edi, eax
jg 0x1012c8e
je 0x1012cae
cmp edi, 0x80042400
je 0x1012c82
cmp edi, 0x80042413
je 0x1012c76
cmp edi, 0x80042419
je 0x1012e07
cmp edi, 0x8004241f
je 0x1012cae
cmp edi, 0x80042448
jne 0x1012d28
mov dword [ebp - 0xa10], 0x1c4
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x40000
jne 0x1012f00
mov eax, edi
and eax, 0xffff
cmp eax, 0x2400
jl 0x1012e16
cmp eax, 0x3000
jg 0x1012e16
push 0x1001dc0
jmp 0x1012e52
mov dword [ebp - 0xa10], 0x23b
jmp 0x1012c3d
mov dword [ebp - 0xa10], 0x1c6
jmp 0x1012c3d
cmp edi, 0x8004245f
je 0x1012cae
cmp edi, 0x80042503
je 0x1012cae
cmp edi, 0x80042505
je 0x1012c33
cmp edi, 0x80042509
jne 0x1012d28
mov dword [ebp - 0xa10], 0x1c2
jmp 0x1012c3d
mov eax, 0x8004255a
cmp edi, eax
jg 0x1012cf8
je 0x1012df8
cmp edi, 0x8004252a
je 0x1012cae
cmp edi, 0x80042538
je 0x1012ce9
cmp edi, 0x80042539
je 0x1012cae
cmp edi, 0x80042556
jmp 0x1012cac
mov dword [ebp - 0xa10], 0x1c5
jmp 0x1012c3d
cmp edi, 0x80042572
je 0x1012c33
cmp edi, 0x80042575
je 0x1012e07
cmp edi, 0x8004280a
je 0x1012df8
cmp edi, 0x8007000e
je 0x1012de9
mov eax, edi
sar eax, 0x10
and eax, 0x1fff
cmp eax, 7
je 0x1012d40
cmp eax, 0x3a
jne 0x1012df8
push ebx
push ebx
lea eax, [ebp - 0xa14]
push eax
push ebx
push edi
push ebx
push 0x1100
mov dword [ebp - 0xa10], 0xf423f
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0xa14], ebx
je 0x1012c3d
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0x230
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0x231
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push dword [ebp - 0xa14]
call fcn.01012503
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0x232
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push dword [ebp - 0xa14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xa14], ebx
jmp 0x1012c3d
mov dword [ebp - 0xa10], 0x6e
jmp 0x1012c3d
mov dword [ebp - 0xa10], 0xf423f
jmp 0x1012c3d
mov dword [ebp - 0xa10], 0x1c3
jmp 0x1012c3d
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1012f00
push 0x1001d88
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100b7be
test eax, eax
jl 0x1012f00
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x1012f00
push eax
push eax
lea ecx, [ebp - 0xa14]
push ecx
push eax
push edi
push ebx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0xa14], 0
je 0x1012ef9
push esi
lea eax, [ebp - 0xa0c]
push eax
mov edi, 0x230
push edi
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0x233
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push dword [ebp - 0xa14]
call fcn.01012503
push esi
lea eax, [ebp - 0xa0c]
push eax
push edi
call fcn.010124cd
lea eax, [ebp - 0xa0c]
push eax
call fcn.01012503
push dword [ebp - 0xa14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xa14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d138
leave
ret 4