Function at 0x10038d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011fbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1016e750]
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 edi, ecx
mov dword [ebp - 0x22c], edi
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10038dc2
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10038def
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
mov byte [ebp - 4], 1
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10038e1a
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
mov byte [ebp - 4], 2
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10038e45
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
lea ecx, [edi + 0x1c]
call fcn.10036bb0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov byte [ebp - 4], 7
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
call fcn.1003a840
mov dword [edi + 0x84], eax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038ee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 4]
call fcn.10024680
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.WinSxs
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0xa
mov esi, esp
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x21c]
mov dword [esi], eax
mov byte [ebp - 4], 8
call fcn.10044c80
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.100244b0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10038f82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10038fa0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [edi + 8]
push edx
push eax
call fcn.10024680
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.SysWOW64
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0xd
mov esi, esp
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x21c]
mov dword [esi], eax
mov byte [ebp - 4], 8
call fcn.10044c80
add esp, 0xc
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0xe
call fcn.100244b0
mov byte [ebp - 4], 8
or ecx, 0xffffffff
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10039043
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10103392
mov esp, ebp
pop ebp
ret