Function at 0x10032930
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044355
mov eax, dword fs:[0]
push eax
mov eax, 0x1348
call fcn.1003e460
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12a8]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x12a8], 0x104
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x1003327e
xor eax, eax
mov dword [ebp - 0x12dc], 7
mov dword [ebp - 0x12e0], 0
mov word [ebp - 0x12f0], ax
cmp word [ebp - 0x424], ax
jne 0x100329d3
xor ecx, ecx
jmp 0x100329ef
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100329e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x12f0]
call fcn.1000dd10
mov dword [ebp - 4], 0
push dword [ebp - 0x12e0]
mov ebx, dword [ebp - 0x12dc]
mov edi, dword [ebp - 0x12f0]
lea eax, [ebp - 0x12f0]
cmp ebx, 8
cmovae eax, edi
push 0
push eax
mov ecx, esi
call fcn.1000ba20
cmp eax, 0xffffffff
je 0x1003326f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x128c]
call fcn.1000de10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x127c]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov dword [ebp - 0x1324], edx
test edx, edx
jle 0x1003303c
test edi, edi
je 0x1003303c
cmp dword [ebp - 0x1278], 8
lea eax, [ebp - 0x128c]
cmovae eax, dword [ebp - 0x128c]
cmp dword [esi + 0x14], 8
jb 0x10032ac3
mov ecx, dword [esi]
jmp 0x10032ac5
mov ecx, esi
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x1003303c
cmp dword [ebp - 0x1278], 8
lea eax, [ebp - 0x128c]
cmovae eax, dword [ebp - 0x128c]
cmp dword [esi + 0x14], 8
jb 0x10032af0
mov ecx, dword [esi]
jmp 0x10032af2
mov ecx, esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push eax
push ecx
call edi
test eax, eax
jne 0x10032b0d
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
xor bl, bl
jmp 0x10033226
lea eax, [ebp - 0x128c]
push eax
lea ecx, [ebp - 0x1320]
call fcn.1000b370
push str.Microsoft
mov edx, eax
lea ecx, [ebp - 0x12c0]
mov byte [ebp - 4], 2
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x1320]
mov byte [ebp - 4], 4
call fcn.10003040
cmp dword [ebp - 0x12ac], 8
lea edx, [ebp - 0x12c0]
cmovae edx, dword [ebp - 0x12c0]
cmp dword [esi + 0x14], 8
jb 0x10032b65
mov ecx, dword [esi]
jmp 0x10032b67
mov ecx, esi
mov eax, dword [ebp - 0x1324]
add eax, 0xa
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x10032b91
lea ecx, [ebp - 0x12c0]
xor bl, bl
call fcn.10003040
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x10033226
lea eax, [ebp - 0x128c]
push eax
lea ecx, [ebp - 0x1308]
call fcn.1000b370
push str.Windows
mov edx, eax
lea ecx, [ebp - 0x12d8]
mov byte [ebp - 4], 5
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x1308]
mov byte [ebp - 4], 7
call fcn.10003040
cmp dword [ebp - 0x12c4], 8
lea edx, [ebp - 0x12d8]
cmovae edx, dword [ebp - 0x12d8]
cmp dword [esi + 0x14], 8
jb 0x10032be9
mov ecx, dword [esi]
jmp 0x10032beb
mov ecx, esi
mov eax, dword [ebp - 0x1324]
add eax, 8
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x10033019
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.Temp
push eax
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x10032c42
mov eax, dword [esi]
jmp 0x10032c44
mov eax, esi
lea ecx, [ebp - 0x834]
push ecx
push eax
call edi
test eax, eax
je 0x10033019
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa3c], ax
lea eax, [ebp - 0xa3a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.Packages
push eax
lea eax, [ebp - 0xa3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x10032c97
mov eax, dword [esi]
jmp 0x10032c99
mov eax, esi
lea ecx, [ebp - 0xa3c]
push ecx
push eax
call edi
test eax, eax
je 0x10033019
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe4c], ax
lea eax, [ebp - 0xe4a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.Programs
push eax
lea eax, [ebp - 0xe4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x10032cec
mov eax, dword [esi]
jmp 0x10032cee
mov eax, esi
lea ecx, [ebp - 0xe4c]
push ecx
push eax
call edi
test eax, eax
je 0x10033019
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x133c]
call fcn.1000de10
push 0x10051ed0
mov edx, eax
lea ecx, [ebp - 0x1274]
mov byte [ebp - 4], 8
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x133c]
mov byte [ebp - 4], 0xa
call fcn.10003040
mov eax, dword [ebp - 0x1264]
cmp dword [ebp - 0x1260], 8
mov dword [ebp - 0x1324], eax
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003300a
cmp dword [ebp - 0x1260], 8
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
cmp dword [esi + 0x14], 8
jb 0x10032d87
mov ecx, dword [esi]
jmp 0x10032d89
mov ecx, esi
push dword [ebp - 0x1324]
push eax
push ecx
call ebx
test eax, eax
jne 0x1003300a
cmp dword [ebp - 0x1260], 8
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
cmp dword [esi + 0x14], 8
jb 0x10032db9
mov ecx, dword [esi]
jmp 0x10032dbb
mov ecx, esi
push eax
push ecx
call edi
test eax, eax
jne 0x10032dd5
lea ecx, [ebp - 0x1274]
xor bl, bl
call fcn.10003040
jmp 0x1003301b
lea eax, [ebp - 0x1274]
push eax
lea ecx, [ebp - 0x1354]
call fcn.1000b370
push str.Microsoft
mov edx, eax
lea ecx, [ebp - 0x1320]
mov byte [ebp - 4], 0xb
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x1354]
mov byte [ebp - 4], 0xd
call fcn.10003040
cmp dword [ebp - 0x130c], 8
lea edx, [ebp - 0x1320]
cmovae edx, dword [ebp - 0x1320]
cmp dword [esi + 0x14], 8
jb 0x10032e2d
mov ecx, dword [esi]
jmp 0x10032e2f
mov ecx, esi
mov eax, dword [ebp - 0x1324]
add eax, 0xa
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x10032e5e
lea ecx, [ebp - 0x1320]
xor bl, bl
call fcn.10003040
lea ecx, [ebp - 0x1274]
call fcn.10003040
jmp 0x1003301b
lea eax, [ebp - 0x1274]
push eax
lea ecx, [ebp - 0x133c]
call fcn.1000b370
push str.Windows
mov edx, eax
lea ecx, [ebp - 0x1308]
mov byte [ebp - 4], 0xe
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x133c]
call fcn.10003040
cmp dword [ebp - 0x12f4], 8
lea edx, [ebp - 0x1308]
cmovae edx, dword [ebp - 0x1308]
cmp dword [esi + 0x14], 8
jb 0x10032eb2
mov ecx, dword [esi]
jmp 0x10032eb4
mov ecx, esi
mov eax, dword [ebp - 0x1324]
add eax, 8
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x10032fe5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x125c], ax
lea eax, [ebp - 0x125a]
push eax
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
cmp dword [ebp - 0x1260], 8
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
push str.Temp
push eax
lea eax, [ebp - 0x125c]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x10032f1b
mov eax, dword [esi]
jmp 0x10032f1d
mov eax, esi
lea ecx, [ebp - 0x125c]
push ecx
push eax
call edi
test eax, eax
je 0x10032fe5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x1054], ax
lea eax, [ebp - 0x1052]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x1260], 8
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
push str.Packages
push eax
lea eax, [ebp - 0x1054]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x10032f7a
mov eax, dword [esi]
jmp 0x10032f7c
mov eax, esi
lea ecx, [ebp - 0x1054]
push ecx
push eax
call edi
test eax, eax
je 0x10032fe5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x1260], 8
lea eax, [ebp - 0x1274]
cmovae eax, dword [ebp - 0x1274]
push str.Programs
push eax
lea eax, [ebp - 0x62c]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x10032fd3
mov esi, dword [esi]
lea eax, [ebp - 0x62c]
push eax
push esi
call edi
test eax, eax
je 0x10032fe5
mov bl, 1
jmp 0x10032fe7
xor bl, bl
lea ecx, [ebp - 0x1308]
call fcn.10003040
lea ecx, [ebp - 0x1320]
call fcn.10003040
lea ecx, [ebp - 0x1274]
call fcn.10003040
jmp 0x1003301b
lea ecx, [ebp - 0x1274]
mov bl, 1
call fcn.10003040
jmp 0x1003301b
xor bl, bl
lea ecx, [ebp - 0x12d8]
call fcn.10003040
lea ecx, [ebp - 0x12c0]
call fcn.10003040
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x10033226
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc44], ax
lea eax, [ebp - 0xc42]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc44]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1324], eax
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x12a4]
call fcn.1000de10
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x1294]
test edi, edi
jle 0x100331ed
cmp dword [ebp - 0x1324], 0
je 0x100331ed
cmp dword [ebp - 0x1290], 8
lea eax, [ebp - 0x12a4]
cmovae eax, dword [ebp - 0x12a4]
cmp dword [esi + 0x14], 8
jb 0x100330c2
mov ecx, dword [esi]
jmp 0x100330c4
mov ecx, esi
push edi
push eax
push ecx
call ebx
test eax, eax
jne 0x100331ed
cmp dword [ebp - 0x1290], 8
lea eax, [ebp - 0x12a4]
cmovae eax, dword [ebp - 0x12a4]
cmp dword [esi + 0x14], 8
jb 0x100330ef
mov ecx, dword [esi]
jmp 0x100330f1
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x100331ed
lea eax, [ebp - 0x12a4]
push eax
lea ecx, [ebp - 0x1354]
call fcn.1000b370
push str.Microsoft
mov edx, eax
lea ecx, [ebp - 0x12d8]
mov byte [ebp - 4], 0x10
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x1354]
mov byte [ebp - 4], 0x12
call fcn.10003040
cmp dword [ebp - 0x12c4], 8
lea edx, [ebp - 0x12d8]
cmovae edx, dword [ebp - 0x12d8]
cmp dword [esi + 0x14], 8
jb 0x10033159
mov ecx, dword [esi]
jmp 0x1003315b
mov ecx, esi
lea eax, [edi + 0xa]
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x10033176
lea ecx, [ebp - 0x12d8]
xor bl, bl
call fcn.10003040
jmp 0x100331ef
lea eax, [ebp - 0x12a4]
push eax
lea ecx, [ebp - 0x133c]
call fcn.1000b370
push str.Windows
mov edx, eax
lea ecx, [ebp - 0x12c0]
mov byte [ebp - 4], 0x13
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x133c]
call fcn.10003040
cmp dword [ebp - 0x12ac], 8
lea ecx, [ebp - 0x12c0]
cmovae ecx, dword [ebp - 0x12c0]
cmp dword [esi + 0x14], 8
jb 0x100331c8
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ecx
push esi
call ebx
test eax, eax
lea ecx, [ebp - 0x12c0]
setne bl
call fcn.10003040
lea ecx, [ebp - 0x12d8]
call fcn.10003040
jmp 0x100331ef
xor bl, bl
cmp dword [ebp - 0x1290], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10033209
push dword [ebp - 0x12a4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1290], 7
mov dword [ebp - 0x1294], 0
mov word [ebp - 0x12a4], ax
cmp dword [ebp - 0x1278], 8
jb 0x1003323a
push dword [ebp - 0x128c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x12dc], 8
mov dword [ebp - 0x1278], 7
mov dword [ebp - 0x127c], 0
mov word [ebp - 0x128c], ax
jb 0x1003326b
push dword [ebp - 0x12f0]
call esi
add esp, 4
mov al, bl
jmp 0x10033280
cmp ebx, 8
jb 0x1003327e
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret 4