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

Disassembly:
push 0xffffffffffffffff
push 0x44e886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x457050]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [0x45d3d0]
lea edx, [esp + 0x2c]
push 0x100
push edx
mov eax, dword [ecx + 8]
xor edi, edi
push 0x9d
push eax
mov dword [esp + 0x24c], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, edi
jne 0x42708f
mov word [esp + 0x2c], di
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4270ab
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.004030d0
jmp 0x4270f9
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00403b50
cmp eax, edi
je 0x4270ee
push esi
push eax
push 0x9d
call fcn.00403f50
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4270ee
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00403b50
cmp eax, edi
jne 0x4270c2
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403c10
mov eax, dword [esp + 0x10]
push eax
call fcn.00438ec8
mov ecx, dword [ebp + 0x44]
add ebp, 0x44
mov ebx, eax
add esp, 4
mov eax, dword [ecx - 8]
mov dword [esp + 0x28], ebp
cmp eax, edi
jne 0x427268
xor eax, eax
lea edx, [esp + 0x2c]
push eax
mov ecx, 0x82
lea edi, [esp + 0x30]
push 0x26
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427268
mov eax, dword [0x457050]
mov ecx, str.360360safe
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4271ac
mov edx, ecx
shr edx, 0x10
jne 0x42716b
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004076c0
jmp 0x4271ac
push str.360360safe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4271ac
push esi
lea ecx, [esp + 0x18]
call fcn.00403d10
test eax, eax
je 0x4271ac
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4271ac
mov edi, dword [esp + 0x14]
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 + 0x14]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x248], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x2c]
test ecx, ecx
jne 0x4271d5
xor eax, eax
jmp 0x4271e0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebp
call fcn.00403d70
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
test eax, eax
lea esi, [edx + 0x40]
je 0x427207
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
push eax
call fcn.00403d70
mov esi, dword [esi]
mov eax, ebx
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.004205b0
mov edx, dword [0x457054]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x23c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x427260
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427260
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
add esp, 4
test esi, esi
jne 0x427381
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
xor esi, esi
mov eax, 1
mov ecx, esi
shl eax, cl
test edi, eax
je 0x4272e5
mov ecx, dword [0x457460]
mov edx, dword [0x457464]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
lea eax, [esi + 0x41]
push ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], ax
call ebp
cmp eax, 3
jne 0x4272e5
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00420510
add esp, 8
test eax, eax
je 0x4272e5
mov ecx, dword [esp + 0x24]
mov eax, ebx
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x4272f0
jl 0x4272e5
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x4272f0
inc esi
cmp esi, 0x1a
jl 0x427278
jmp 0x427381
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
lea esi, [eax + 0x40]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x427327
lea edx, [esp + 0x14]
test edx, edx
jne 0x42730d
xor eax, eax
jmp 0x427318
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00403d70
jmp 0x427337
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.0040e430
mov edx, dword [esi]
mov word [edx], di
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [edi]
cmp ecx, eax
je 0x427381
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x427357
mov edx, dword [0x457054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42735e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42736c
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.00403d70
jmp 0x427381
mov ecx, edi
call fcn.00403e30
mov esi, dword [esi]
mov dword [edi], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x457054]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x4273b4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4273b4
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
add esp, 4
mov ecx, dword [esp + 0x224]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x230
ret