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

Disassembly:
push 0xffffffffffffffff
push 0x44ecf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x458050]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [0x45e460]
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 0x4274cf
mov word [esp + 0x2c], di
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4274eb
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.004030c0
jmp 0x427539
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00403bf0
cmp eax, edi
je 0x42752e
push esi
push eax
push 0x9d
call fcn.00403f40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x42752e
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00403bf0
cmp eax, edi
jne 0x427502
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403cb0
mov eax, dword [esp + 0x10]
push eax
call fcn.00439318
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 0x4276a8
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 0x4276a8
mov eax, dword [0x458050]
mov ecx, str.360360safe
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4275ec
mov edx, ecx
shr edx, 0x10
jne 0x4275ab
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004076b0
jmp 0x4275ec
push str.360360safe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4275ec
push esi
lea ecx, [esp + 0x18]
call fcn.00403db0
test eax, eax
je 0x4275ec
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4275ec
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 0x427615
xor eax, eax
jmp 0x427620
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.00403e10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
test eax, eax
lea esi, [edx + 0x40]
je 0x427647
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.00403e10
mov esi, dword [esi]
mov eax, ebx
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.00420650
mov edx, dword [0x458054]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x23c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4276a0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4276a0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
test esi, esi
jne 0x4277c1
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 0x427725
mov ecx, dword [0x4584d4]
mov edx, dword [0x4584d8]
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 0x427725
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.004205b0
add esp, 8
test eax, eax
je 0x427725
mov ecx, dword [esp + 0x24]
mov eax, ebx
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x427730
jl 0x427725
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x427730
inc esi
cmp esi, 0x1a
jl 0x4276b8
jmp 0x4277c1
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
lea esi, [eax + 0x40]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x427767
lea edx, [esp + 0x14]
test edx, edx
jne 0x42774d
xor eax, eax
jmp 0x427758
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.00403e10
jmp 0x427777
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.0040e420
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 0x4277c1
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x427797
mov edx, dword [0x458054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42779e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4277ac
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.00403e10
jmp 0x4277c1
mov ecx, edi
call fcn.00403ed0
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 [0x458054]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x4277f4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4277f4
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov ecx, dword [esp + 0x224]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x230
ret