Function at 0x487170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68805a
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x178], 0
call fcn.004a28b0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x144], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x487200
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.0044eca0
push 0
push 0x726074
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
call fcn.0044eca0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], 2
sub eax, 0
je 0x487274
sub eax, 1
jne 0x48748c
push 8
push str.syswow64
jmp 0x48727b
push 8
push str.system32
lea ecx, [ebp - 0x15c]
call fcn.0044eca0
mov esi, dword [ebp - 0x134]
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
lea eax, [esi + 1]
mov byte [ebp - 0x12c], 0
push eax
mov dword [ebp - 0x178], 6
call fcn.00452bd0
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push esi
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
call fcn.0044edd0
push 1
push 0x726f98
lea ecx, [ebp - 0x12c]
call fcn.0044edd0
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.004560d0
add esp, 0xc
push 1
push 0x726f98
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0044edd0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x48738f
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x487385
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874ad
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
cmp edx, 0x10
jb 0x4873e4
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4873da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874b2
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp edx, 0x10
jb 0x487439
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48742f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874b7
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x48746f
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x487465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874bc
push edx
push ecx
call fcn.0048af59
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret
push str.PreInstallPathSetup:_Unknown_platform
lea ecx, [ebp - 0x188]
call fcn.0044c070
push 0x73d15c
lea eax, [ebp - 0x188]
push eax
call fcn.004a18e8
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
int3