Function at 0x10119f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x64c], edi
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x10119f5b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x650]
push eax
call fcn.100e6750
mov eax, dword [ebp - 0x650]
add esp, 4
add eax, 0xfffffff0
push 1
push ecx
mov esi, esp
push eax
call fcn.10004ba0
add eax, 0x10
mov dword [esi], eax
mov esi, esp
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.10004ba0
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10119050
test eax, eax
je 0x10119fad
mov esi, 1
jmp 0x1011a463
lea eax, [ebp - 0x634]
push eax
call fcn.10119310
mov edx, dword [ebp - 0x634]
lea ecx, [ebp - 0x634]
add esp, 4
cmp dword [ebp - 0x620], 8
jb 0x10119fd3
mov ecx, edx
lea esi, [ebp - 0x634]
jb 0x10119fdd
mov esi, edx
mov eax, dword [ebp - 0x624]
lea edi, [ebp - 0x634]
lea esi, [esi + eax*2]
jb 0x10119ff0
mov edi, edx
cmp edi, esi
je 0x1011a01d
sub ecx, edi
mov dword [ebp - 0x644], ecx
mov ebx, ecx
mov edi, edi
movzx eax, word [edi]
push eax
call fcn.102135d1
mov word [ebx + edi], ax
add esp, 4
add edi, 2
cmp edi, esi
jne 0x1011a000
mov ebx, dword [ebp - 0x638]
lea eax, [ebp - 0x634]
push 0x1022d520
push eax
call fcn.100eda40
add esp, 8
test al, al
jne 0x1011a456
lea eax, [ebp - 0x634]
push str.service
push eax
call fcn.100eda40
add esp, 8
test al, al
jne 0x1011a456
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0
push 0x28
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1011a3e2
lea eax, [ebp - 0x644]
push str._SystemRoot_
push eax
call fcn.10009b10
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
mov esi, dword [ebp - 0x644]
lea ecx, [ebp - 0x414]
mov eax, ecx
add esp, 0x14
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1011a0e9
movzx eax, word [esi + ecx]
test ax, ax
je 0x1011a0e2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1011a0c2
jmp 0x1011a0e6
test edx, edx
jne 0x1011a0e9
sub ecx, 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
push str...Documents_and_Settings
push eax
call edi
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x640]
call fcn.10004700
push 0x10219e0c
lea ecx, [ebp - 0x640]
call fcn.100e9fc0
push 0x10219d7c
lea ecx, [ebp - 0x63c]
call fcn.10004700
cmp dword [ebp + 0xc], 0
je 0x1011a15d
lea edx, [ebx + 0x2d4]
test edx, edx
jne 0x1011a148
xor ecx, ecx
jmp 0x1011a17f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1011a150
jmp 0x1011a17b
lea edx, [ebx + 0x4dc]
test edx, edx
jne 0x1011a16b
xor ecx, ecx
jmp 0x1011a17f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1011a170
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x63c]
call fcn.10004050
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
mov esi, dword [ebp - 0x63c]
lea ecx, [ebp - 0x20c]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
jmp 0x1011a1c0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1011a1e7
movzx eax, word [esi + ecx]
test ax, ax
je 0x1011a1e0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1011a1c0
jmp 0x1011a1e4
test edx, edx
jne 0x1011a1e7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x638]
push 0x9c40
call fcn.10004700
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x638]
call int.10008f10
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x648]
call fcn.10004700
mov esi, dword [ebp - 0x640]
push 0x5c
push esi
call fcn.102135d7
mov edi, eax
add esp, 8
test edi, edi
je 0x1011a2ed
sub edi, esi
sar edi, 1
test edi, edi
jle 0x1011a2ed
cmp edi, dword [esi - 0xc]
jl 0x1011a267
add esi, 0xfffffff0
push esi
call fcn.10004ba0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x638], eax
jmp 0x1011a2ca
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x1011a279
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1011a28f
call fcn.10003980
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1011a4c9
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x1011a4d3
add eax, 0x10
mov dword [ebp - 0x638], eax
cmp edi, dword [eax - 8]
jg 0x1011a4d8
mov dword [eax - 0xc], edi
xor ecx, ecx
add edi, edi
mov word [edi + eax], cx
test edi, edi
je 0x1011a2ca
push edi
push esi
push eax
call fcn.102134e1
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x640]
call fcn.10004870
lea ecx, [ebp - 0x638]
call int.10008f10
mov esi, dword [ebp - 0x640]
push 0
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.10004ba0
mov esi, dword [ebp - 0x64c]
add eax, 0x10
mov ecx, esp
mov dword [edi], eax
push esi
call fcn.1001e2c0
mov ecx, ebx
call fcn.10119050
test eax, eax
jne 0x1011a33d
push eax
push ecx
lea eax, [ebp - 0x414]
mov ecx, esp
push eax
call fcn.10004700
push ecx
mov ecx, esp
push esi
call fcn.1001e2c0
mov ecx, ebx
call fcn.10119050
test eax, eax
je 0x1011a3b6
mov ecx, esi
call fcn.1005fe40
lea ecx, [ebp - 0x63c]
call fcn.1005fe40
lea ecx, [ebp - 0x648]
call fcn.1005fe40
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x1011a380
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jl 0x1011a380
push eax
push ecx
call fcn.10213505
add esp, 8
test eax, eax
je 0x1011a380
sub eax, dword [esi]
sar eax, 1
je 0x1011a3b6
mov eax, dword [ebp - 0x648]
test eax, eax
je 0x1011a496
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jl 0x1011a496
push eax
push ecx
call fcn.10213505
add esp, 8
test eax, eax
je 0x1011a496
sub eax, dword [esi]
sar eax, 1
jne 0x1011a496
lea ecx, [ebp - 0x648]
call int.10008f10
lea ecx, [ebp - 0x63c]
call int.10008f10
lea ecx, [ebp - 0x640]
call int.10008f10
lea ecx, [ebp - 0x644]
call int.10008f10
mov eax, dword [ebx + 0xc4]
xor edi, edi
mov ecx, dword [ebx + 0xc0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1011a456
lea esp, [esp]
mov eax, dword [ecx + edi*4]
push 0
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.10004ba0
add eax, 0x10
mov dword [esi], eax
mov esi, esp
mov eax, dword [ebp - 0x64c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10004ba0
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10119050
test eax, eax
jne 0x1011a4c2
mov eax, dword [ebx + 0xc4]
inc edi
mov ecx, dword [ebx + 0xc0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1011a400
xor esi, esi
lea ecx, [ebp - 0x634]
call fcn.1001d6d0
mov edi, dword [ebp - 0x650]
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1011a481
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x648]
call int.10008f10
lea ecx, [ebp - 0x63c]
call int.10008f10
lea ecx, [ebp - 0x640]
call int.10008f10
lea ecx, [ebp - 0x644]
call int.10008f10
mov esi, 1
jmp 0x1011a458
push 0x80004005
call fcn.100030c0
call fcn.100041a0
push 0x80070057
call fcn.100030c0
int3