Function at 0x10031f00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044284
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
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 - 0x424]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
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 - 0x424]
push str.Program_Files
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x660], 7
mov dword [ebp - 0x664], 0
mov word [ebp - 0x674], ax
cmp word [ebp - 0x21c], ax
jne 0x10031fcf
xor ecx, ecx
jmp 0x10031fef
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
jmp 0x10031fe0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031fe0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x674]
call fcn.1000dd10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x660], 8
mov ebx, dword [ebp - 0x664]
lea ecx, [ebp - 0x674]
cmovae ecx, dword [ebp - 0x674]
cmp dword [esi + 0x14], 8
jb 0x1003202d
mov eax, dword [esi]
jmp 0x1003202f
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push ebx
push ecx
push eax
call edi
test eax, eax
jne 0x100322ed
cmp dword [ebp - 0x660], 8
lea eax, [ebp - 0x674]
cmovae eax, dword [ebp - 0x674]
cmp dword [esi + 0x14], 8
jb 0x10032060
mov ecx, dword [esi]
jmp 0x10032062
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10032075
xor bl, bl
jmp 0x1003254c
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
call fcn.1000d980
push str.Common_Files
lea edx, [ebp - 0x644]
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 1
call fcn.1000c610
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x630], 8
jb 0x100320e0
push dword [ebp - 0x644]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x678], 8
lea ecx, [ebp - 0x68c]
cmovae ecx, dword [ebp - 0x68c]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
jb 0x1003211b
mov edx, dword [esi]
jmp 0x1003211d
mov edx, esi
lea eax, [ebx + 0xd]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x100322af
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x6bc], ax
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x6bc]
mov dword [ebp - 0x6a8], 7
mov dword [ebp - 0x6ac], 0
call fcn.1000d980
push str.Microsoft
lea edx, [ebp - 0x6bc]
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 4
call fcn.1000c610
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x6a8], 8
jb 0x10032198
push dword [ebp - 0x6bc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x648], 8
lea ecx, [ebp - 0x65c]
cmovae ecx, dword [ebp - 0x65c]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x6a8], 7
mov dword [ebp - 0x6ac], 0
mov word [ebp - 0x6bc], ax
jb 0x100321d3
mov edx, dword [esi]
jmp 0x100321d5
mov edx, esi
lea eax, [ebx + 0xa]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x1003227a
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
call fcn.1000d980
push str.Windows
lea edx, [ebp - 0x644]
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 7
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 6
call fcn.10003040
cmp dword [ebp - 0x690], 8
lea edx, [ebp - 0x6a4]
cmovae edx, dword [ebp - 0x6a4]
cmp dword [esi + 0x14], 8
jb 0x10032261
mov ecx, dword [esi]
jmp 0x10032263
mov ecx, esi
lea eax, [ebx + 8]
push eax
push edx
push ecx
call edi
lea ecx, [ebp - 0x6a4]
test eax, eax
jne 0x100322ce
call fcn.10003040
cmp dword [ebp - 0x648], 8
jb 0x10032292
push dword [ebp - 0x65c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x648], 7
mov dword [ebp - 0x64c], 0
mov word [ebp - 0x65c], ax
cmp dword [ebp - 0x678], 8
jb 0x100322c7
push dword [ebp - 0x68c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor bl, bl
jmp 0x1003254c
call fcn.10003040
lea ecx, [ebp - 0x65c]
call fcn.10003040
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 0
call fcn.10003040
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
lea eax, [ebp - 0x62c]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x62c]
mov edx, eax
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032330
sub ecx, ebx
sar ecx, 1
je 0x1003254a
test edx, edx
je 0x1003254a
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.1000de10
mov byte [ebp - 4], 8
cmp dword [ebp - 0x630], 8
mov ebx, dword [ebp - 0x634]
lea ecx, [ebp - 0x644]
cmovae ecx, dword [ebp - 0x644]
cmp dword [esi + 0x14], 8
jb 0x10032387
mov eax, dword [esi]
jmp 0x10032389
mov eax, esi
push ebx
push ecx
push eax
call edi
test eax, eax
jne 0x1003253f
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
cmp dword [esi + 0x14], 8
jb 0x100323b4
mov ecx, dword [esi]
jmp 0x100323b6
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x10032515
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.1000b370
push str.Common_Files
mov edx, eax
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 9
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0xb
call fcn.10003040
cmp dword [ebp - 0x648], 8
lea edx, [ebp - 0x65c]
cmovae edx, dword [ebp - 0x65c]
cmp dword [esi + 0x14], 8
jb 0x1003241e
mov ecx, dword [esi]
jmp 0x10032420
mov ecx, esi
lea eax, [ebx + 0xd]
push eax
push edx
push ecx
call edi
test eax, eax
je 0x1003250a
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.1000b370
push str.Microsoft
mov edx, eax
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 0xc
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 0xe
call fcn.10003040
cmp dword [ebp - 0x678], 8
lea edx, [ebp - 0x68c]
cmovae edx, dword [ebp - 0x68c]
cmp dword [esi + 0x14], 8
jb 0x10032488
mov ecx, dword [esi]
jmp 0x1003248a
mov ecx, esi
lea eax, [ebx + 0xa]
push eax
push edx
push ecx
call edi
test eax, eax
je 0x100324ff
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.1000b370
push str.Windows
mov edx, eax
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 0xf
call fcn.1000c610
add esp, 4
lea ecx, [ebp - 0x6bc]
call fcn.10003040
cmp dword [ebp - 0x690], 8
lea ecx, [ebp - 0x6a4]
cmovae ecx, dword [ebp - 0x6a4]
cmp dword [esi + 0x14], 8
jb 0x100324e8
mov esi, dword [esi]
lea eax, [ebx + 8]
push eax
push ecx
push esi
call edi
lea ecx, [ebp - 0x6a4]
test eax, eax
jne 0x10032524
call fcn.10003040
lea ecx, [ebp - 0x68c]
call fcn.10003040
lea ecx, [ebp - 0x65c]
call fcn.10003040
lea ecx, [ebp - 0x644]
call fcn.10003040
xor bl, bl
jmp 0x1003254c
call fcn.10003040
lea ecx, [ebp - 0x68c]
call fcn.10003040
lea ecx, [ebp - 0x65c]
call fcn.10003040
lea ecx, [ebp - 0x644]
call fcn.10003040
mov bl, 1
cmp dword [ebp - 0x660], 8
jb 0x10032564
push dword [ebp - 0x674]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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