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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp word [esi], 0
je 0x101560ad
push 0x2f
push esi
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x10155c39
xor ecx, ecx
mov word [eax], cx
push 0x1021a2c0
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
je 0x10155c50
xor ecx, ecx
mov word [eax], cx
cmp word [esi], 0x22
push edi
jne 0x10155ca0
mov edx, 0x104
mov ecx, esi
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10155c80
movzx edi, word [ecx + 2]
test di, di
je 0x10155c80
mov word [ecx], di
add ecx, 2
sub edx, 1
jne 0x10155c60
jmp 0x10155c84
test edx, edx
jne 0x10155c87
sub ecx, 2
xor eax, eax
push 0x22
push esi
mov word [ecx], ax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x10155ca0
xor ecx, ecx
mov word [eax], cx
push str..exe
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10155cb6
xor ecx, ecx
mov word [eax + 8], cx
push 4
push str.___
push esi
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x10155cfb
mov ecx, 0x104
nop
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + 8]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155cd0
jmp 0x101560a4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0xb
push str._systemroot
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0x18
test eax, eax
jne 0x10155d7b
lea eax, [esi + 0x16]
push eax
push ebx
push 0x10205358
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
lea ecx, [ecx]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155d50
jmp 0x101560a4
push 9
push str.system32_
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x10155deb
push esi
push ebx
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
jmp 0x10155dc0
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155dc0
jmp 0x101560a4
push 0xd
push str._SystemRoot__
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x10155e5b
lea eax, [esi + 0x1a]
push eax
push ebx
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
lea ebx, [ebx]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155e30
jmp 0x101560a4
push 9
push str._WinDir__
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x10155ecb
lea eax, [esi + 0x12]
push eax
push ebx
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
lea ebx, [ebx]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155ea0
jmp 0x101560a4
push 0x14
push str._ProgramFiles_x86___
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x10155f5c
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x101560ac
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155f31
jmp 0x101560a4
push 0xf
push str._ProgramFiles__
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x10155fed
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x101560ac
lea eax, [esi + 0x1e]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
lea edx, [ebp - 0x20c]
add esp, 0x14
mov ecx, 0x104
sub edx, esi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10155fc2
jmp 0x101560a4
cmp word [esi], 0x22
jne 0x101560ac
lea ecx, [ebp - 0x20c]
mov eax, esi
mov edi, ecx
mov edx, 0x104
sub eax, edi
lea edi, [eax + 2]
jmp 0x10156010
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10156030
movzx eax, word [edi + ecx]
test ax, ax
je 0x10156030
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10156010
jmp 0x10156034
test edx, edx
jne 0x10156037
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10156045
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x101560bd
xor eax, eax
lea edx, [ebp - 0x20c]
mov word [ebp + ecx - 0x20c], ax
sub edx, esi
mov ecx, 0x104
lea ebx, [ebx]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x101560a0
movzx eax, word [esi + edx]
test ax, ax
je 0x101560a0
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10156080
jmp 0x101560a4
test ecx, ecx
jne 0x101560a7
sub esi, 2
xor eax, eax
mov word [esi], ax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101c8260
int3