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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57816b
mov eax, dword fs:[0]
push eax
mov eax, 0x1524
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1530], eax
mov dword [ebp - 0x152c], eax
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x4890ff
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x152c], esi
push 0x800
lea eax, [ebp - 0x1518]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00516300
push 0x800
lea eax, [ebp - 0xd18]
push 0
push eax
call fcn.00516300
add esp, 0x18
lea eax, [ebp - 0x1518]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x10e]
push 0
push eax
call fcn.00516300
add esp, 0xc
xor edi, edi
nop dword [eax]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x1528]
push eax
movups xmmword [ebp - 0x1528], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00516300
movzx eax, byte [ebp - 0x1519]
push eax
movzx eax, byte [ebp - 0x151a]
push eax
movzx eax, byte [ebp - 0x151b]
push eax
movzx eax, byte [ebp - 0x151c]
push eax
movzx eax, byte [ebp - 0x151d]
push eax
movzx eax, byte [ebp - 0x151e]
push eax
movzx eax, byte [ebp - 0x151f]
push eax
movzx eax, byte [ebp - 0x1520]
push eax
movzx eax, word [ebp - 0x1522]
push eax
movzx eax, word [ebp - 0x1524]
push eax
push dword [ebp - 0x1528]
lea eax, [ebp - 0x310]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.0040f310
lea eax, [ebp - 0x310]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x488f56
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.00541ddd
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1518]
push eax
lea eax, [ebp - 0xd18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xd18]
push 0x400
push eax
call fcn.00541bd7
add esp, 0xc
lea eax, [ebp - 0xd18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48901e
inc edi
cmp edi, 0xa
jl 0x488eb0
mov edi, dword [ebp - 0x1530]
xor eax, eax
push eax
push 0x58ac10
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.00412a70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4890e0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4890e0
lea ecx, [ebp - 0xd18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489027
sub ecx, edx
lea eax, [ebp - 0xd18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x152c]
call fcn.0040da40
mov esi, dword [ebp - 0x152c]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x518]
push str.lds_setup.7z
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [ebp - 0x1530]
lea ecx, [ebp - 0x518]
xor eax, eax
lea edx, [ecx + 2]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4890a3
sub ecx, edx
lea eax, [ebp - 0x518]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00412a70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4890e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004b0a78
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040af40
int3