Function at 0x10003ea4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x1f4
push 0x1002690c
mov ecx, str.Installer
mov dword [ebp - 0x174], esi
call fcn.10003140
pop ecx
pop ecx
test eax, eax
je 0x10003f14
cmp byte [esi], 0
je 0x10003f14
lea eax, [ebp - 0x170]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10003f14
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebx
neg eax
sbb edi, edi
lea eax, [ebp - 0x170]
push eax
call ebx
inc edi
je 0x100040ee
push 0x1f3
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10003f2a
mov byte [esi + 2], 0
jmp 0x10003f36
push 0x10026c98
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and dword [ebp - 0x178], 0
push 0x64
lea eax, [ebp - 0x68]
push eax
push str.ProgramFilesPath
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersion
push ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.10003395
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x14
test eax, eax
je 0x10003fbb
push 0xd
lea eax, [ebp - 0x68]
push str._SystemDrive_
push eax
call fcn.10019d58
add esp, 0xc
test eax, eax
jne 0x10003fbb
lea eax, [ebp - 0x5b]
push 0x25
push eax
call fcn.10019900
pop ecx
pop ecx
test eax, eax
jne 0x10003fbb
lea eax, [ebp - 0x5b]
push eax
call edi
cmp eax, 0x1f2
jge 0x10003fbb
mov ebx, dword [ebp - 0x174]
lea eax, [ebp - 0x5b]
push eax
lea eax, [ebx + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x178], 1
jmp 0x10004018
push 0x64
lea eax, [ebp - 0x68]
push eax
push str.ProgramFilesDir
push ebx
push esi
call fcn.10003395
add esp, 0x14
test eax, eax
je 0x10004012
cmp byte [ebp - 0x68], 0
je 0x10004012
lea eax, [ebp - 0x68]
push 0x25
push eax
call fcn.10019900
pop ecx
pop ecx
test eax, eax
jne 0x10004012
lea eax, [ebp - 0x68]
push eax
call edi
cmp eax, 0x1f4
jge 0x10004012
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x178], 1
mov ebx, dword [ebp - 0x174]
xor ecx, ecx
mov eax, str.Cache
cmp ecx, eax
jne 0x1000402b
and dword [ebp - 0x174], ecx
jmp 0x10004034
push eax
call edi
mov dword [ebp - 0x174], eax
push dword [0x10031e2c]
call edi
push dword [0x10031e28]
mov esi, eax
call edi
add esi, dword [ebp - 0x174]
cmp dword [ebp - 0x178], 1
lea esi, [eax + esi + 0xa]
jne 0x10004071
push ebx
call edi
dec eax
test eax, eax
jle 0x1000406b
cmp byte [ebx + eax], 0x5c
jne 0x1000406b
mov byte [ebx + eax], 0
lea esi, [esi + eax + 1]
jmp 0x1000407b
push dword [0x10031e24]
call edi
add esi, eax
cmp esi, 0x1f4
jle 0x10004087
xor eax, eax
jmp 0x100040f1
mov eax, dword [ebp - 0x178]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 3
jge 0x100040ba
lea edi, [eax*4 + 0x10031e24]
push dword [edi]
push ebx
call esi
push ebx
call fcn.10003027
pop ecx
test eax, eax
je 0x10004083
add edi, 4
cmp edi, 0x10031e30
jl 0x1000409f
xor ecx, ecx
mov eax, str.Cache
cmp ecx, eax
je 0x100040c9
push eax
push ebx
call esi
push 0x10026c48
push ebx
call esi
push ebx
call fcn.10003027
pop ecx
test eax, eax
je 0x10004083
push ebx
push 0x1002690c
mov ecx, str.Installer
call fcn.100034ad
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a76
leave
ret