Function at 0x42a480
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x456621
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa1c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x22c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor esi, esi
lea ebp, [esp + 0x22c]
cmp word [esp + 0x22c], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x42a785
mov ecx, dword [str.lF_F]
mov dword [esp + 0x14], ecx
xor edx, edx
lea eax, [esp + 0x14]
mov dx, word [ebp]
mov dword [esp + 0xa34], esi
push edx
push str._c:_
push eax
call fcn.00407560
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.0042a3b0
test eax, eax
jne 0x42a576
push ebp
call fcn.00441905
mov edx, dword [0x46005c]
lea ebp, [ebp + eax*2 + 2]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0xa34], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a77b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a77b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00439890
add esp, 4
jmp 0x42a77b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa40]
cmp eax, ecx
jl 0x42a75a
jg 0x42a59e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa3c]
cmp ecx, eax
jbe 0x42a75a
mov edx, dword [str.lF_F]
mov dword [esp + 0x10], edx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x26
push eax
push esi
mov byte [esp + 0xa44], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42a6cb
mov ecx, dword [str.lF_F]
mov edx, str.360360safe
test edx, edx
mov dword [esp + 0x18], ecx
je 0x42a642
mov eax, edx
shr eax, 0x10
jne 0x42a601
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.00403d60
jmp 0x42a642
push str.360360safe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x42a642
push esi
lea ecx, [esp + 0x1c]
call fcn.00404130
test eax, eax
je 0x42a642
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x42a642
mov edi, dword [esp + 0x18]
mov eax, ecx
mov esi, str.360360safe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0xa40], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov cx, word [ebp]
lea edx, [esp + 0x24]
test edx, edx
mov word [esp + 0x24], cx
jne 0x42a674
xor eax, eax
jmp 0x42a67f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404190
mov eax, dword [esp + 0x18]
mov ecx, dword [0x46005c]
mov byte [esp + 0xa34], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42a738
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a738
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00439890
add esp, 4
jmp 0x42a738
xor ecx, ecx
lea edx, [esp + 0x10]
mov cx, word [ebp]
push ecx
push 0x4605e8
push edx
call fcn.00407560
mov eax, dword [ebx + 0x7c0]
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + 0x7c0]
add esp, 0xc
cmp eax, ecx
je 0x42a738
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x42a70c
mov edx, dword [0x46005c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x42a713
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x42a721
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00404190
jmp 0x42a738
mov ecx, esi
call fcn.00404250
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0042a330
test eax, eax
jne 0x42a7a3
lea ecx, [esp + 0x10]
mov byte [esp + 0xa34], al
call fcn.00404100
xor esi, esi
push ebp
call fcn.00441905
add esp, 4
lea ecx, [esp + 0x14]
lea ebp, [ebp + eax*2 + 2]
mov dword [esp + 0xa34], 0xffffffff
call fcn.00404100
cmp word [ebp], si
jne 0x42a4e3
xor ax, ax
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa28
ret 0xc
mov esi, dword [esp + 0xa44]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
cmp ecx, eax
je 0x42a7f8
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x42a7c8
mov edx, dword [0x46005c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42a7cf
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42a7dd
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00404190
jmp 0x42a7f4
mov ecx, esi
call fcn.00404250
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x46005c]
mov bp, word [ebp]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a827
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a827
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00439890
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x46005c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a856
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42a856
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00439890
add esp, 4
mov ax, bp
jmp 0x42a788