Function at 0x106823b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, 0x80004005
push edi
mov edi, ebx
je 0x10685f2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10685f2
lea eax, [ebp - 4]
push eax
push 0x1007d40
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
jne 0x1068287
mov eax, 0x80070057
jmp 0x10685f7
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x106827d
cmp eax, 0x19
ja 0x10684d3
je 0x10684c2
cmp eax, 0x11
ja 0x10683be
je 0x106837b
sub eax, 0
je 0x10685ee
dec eax
je 0x1068369
sub eax, 9
je 0x10684c2
dec eax
je 0x1068330
dec eax
jne 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10682e4
xor edi, edi
jmp 0x1068309
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10682f3
push 0x57
pop eax
test eax, eax
jle 0x10682ff
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0
push 4
call fcn.01057146
test eax, eax
je 0x106831d
push 0x100e8bc
jmp 0x1068322
push 0x100e8a8
push esi
push dword [ebp + 8]
call fcn.01034cee
jmp 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1068375
xor edi, edi
jmp 0x10685ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1068354
push 0x57
pop eax
test eax, eax
jle 0x10685ec
and eax, 0xffff
or eax, 0x80070000
jmp 0x10685ec
push dword [ebp + 8]
shr esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x106833e
jmp 0x1068345
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x106838f
xor edi, edi
jmp 0x10683b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106839e
push 0x57
pop eax
test eax, eax
jle 0x10683aa
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x100e89c
jmp 0x1068322
sub eax, 0x12
je 0x106847f
dec eax
dec eax
je 0x106843c
dec eax
je 0x10685ee
dec eax
dec eax
je 0x10685ee
dec eax
jne 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10683f5
xor edi, edi
jmp 0x106841a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1068404
push 0x57
pop eax
test eax, eax
jle 0x1068410
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x1007e44
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x10685ee
and word [eax + 4], 0
jmp 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1068450
xor edi, edi
jmp 0x1068475
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106845f
push 0x57
pop eax
test eax, eax
jle 0x106846b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x100e88c
jmp 0x1068322
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1068493
xor edi, edi
jmp 0x10684b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10684a2
push 0x57
pop eax
test eax, eax
jle 0x10684ae
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x100e880
jmp 0x1068322
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
jmp 0x1068375
cmp eax, 0x4019
ja 0x106858b
cmp eax, 0x4016
jae 0x10685ee
cmp eax, 0x1e
je 0x10685ee
cmp eax, 0x32
je 0x10685ee
cmp eax, 0x33
je 0x106854c
cmp eax, 0x34
jne 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x106851d
xor edi, edi
jmp 0x1068542
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106852c
push 0x57
pop eax
test eax, eax
jle 0x1068538
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x100e860
jmp 0x1068322
shr esi, 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1068560
xor edi, edi
jmp 0x1068581
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106856f
push 0x57
pop eax
test eax, eax
jle 0x106857b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10685ee
push 0x100e850
jmp 0x1068322
sub eax, 0x401f
je 0x10685ee
sub eax, 4
je 0x10685e1
sub eax, 3
je 0x10685d4
sub eax, 5
je 0x10685c7
sub eax, 0x3825
jne 0x10685ee
push 0x104
push 1
push dword [ebp + 8]
call fcn.01059beb
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, ebx
jmp 0x10685ee
shr esi, 1
push esi
push dword [ebp + 8]
call fcn.01067f88
jmp 0x10685ec
shr esi, 1
push esi
push dword [ebp + 8]
call fcn.01067cfe
jmp 0x10685ec
shr esi, 1
push esi
push dword [ebp + 8]
call fcn.010680e6
mov edi, eax
mov eax, edi
jmp 0x10685f7
mov eax, 0x80004003
pop edi
pop esi
pop ebx
leave
ret 8