Function at 0x100122f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a926e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x10223008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
je 0x100125bc
push ebx
call fcn.100121b0
test al, al
jne 0x100125bc
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x10012343
mov edx, dword [ebx]
mov ecx, edx
mov dword [ebp - 0x284], 0
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012380
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x294]
call fcn.10004a60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x2dc]
call fcn.100a40f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
call fcn.100049f0
cmp dword [ebp - 0x2cc], 0
je 0x100125aa
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], 3
push 0x20c
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1001259b
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012447
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.10004a60
cmp dword [ebp - 0x284], 0
je 0x1001259b
push str.System32
lea ecx, [ebp - 0x27c]
call fcn.10004820
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
push str.SysWOW64
call fcn.10004820
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
push str.System32drivers
call fcn.10004820
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x234]
push str.SysWOW64drivers
call fcn.10004820
mov byte [ebp - 4], 7
xor esi, esi
lea edi, [ebp - 0x27c]
nop
push edi
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x2c4]
call fcn.10014d30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2dc]
push eax
lea edx, [ebp - 0x2c4]
lea ecx, [ebp - 0x2ac]
call fcn.10099c10
add esp, 8
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2ac]
push eax
call fcn.100121b0
test al, al
jne 0x1001253e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.100049f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c4]
call fcn.100049f0
inc esi
add edi, 0x18
cmp esi, 4
jb 0x100124d0
jmp 0x10012582
lea eax, [ebp - 0x2ac]
cmp ebx, eax
je 0x10012564
cmp dword [ebp - 0x298], 8
mov ecx, ebx
push dword [ebp - 0x29c]
cmovae eax, dword [ebp - 0x2ac]
push eax
call fcn.10004a60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.100049f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c4]
call fcn.100049f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x27c]
push fcn.10004770
push 4
push 0x18
push eax
call fcn.1018db7f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
call fcn.100049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.100049f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018d5a4
mov esp, ebp
pop ebp
ret 4