Function at 0x413340
Capabilities:
Get disk information
Get disk size
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4981a0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4be0a0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x40]
push str.bakpath
xor edi, edi
push eax
mov edx, str.Softwareprojonepodlpdlpcore_
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call fcn.0045e95a
add esp, 8
mov dword [esp + 0xa4], edi
cmp dword [esp + 0x54], edi
je 0x413402
mov eax, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x4133c4
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x413402
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x48]
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
push edx
mov eax, ebp
mov word [ebp + 4], cx
call fcn.00402830
cmp dword [esp + 0x58], esi
jb 0x41373a
mov eax, dword [esp + 0x44]
push eax
jmp 0x413732
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x28]
mov edx, 1
shl edx, cl
test eax, edx
je 0x413577
mov bl, cl
add bl, 0x61
movsx cx, bl
movzx edx, cx
push edx
push str._c:_
lea esi, [esp + 0x80]
mov byte [esp + 0x24], bl
call fcn.0045e820
add esp, 8
mov byte [esp + 0xa4], 1
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x41346d
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x413558
mov eax, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.0045d498
test eax, eax
je 0x4134c3
cmp dword [esp + 0x20], 0
setne al
test al, al
je 0x4134c3
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x90], 8
jb 0x413577
mov ecx, dword [esp + 0x7c]
push ecx
jmp 0x41356f
movsx edx, bl
push edx
push str._c:podlp_backup
lea esi, [esp + 0x64]
call fcn.0045e820
add esp, 8
mov byte [esp + 0xa4], 2
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x4134f3
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4135cd
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x413513
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x413545
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x38]
jb 0x413545
mov eax, dword [esp + 0x2c]
ja 0x41353b
cmp eax, edi
jbe 0x413545
mov byte [esp + 0x1b], bl
mov edi, eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x74], esi
jb 0x413558
mov edx, dword [esp + 0x60]
push edx
call fcn.0047d710
add esp, 4
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x90], 8
jb 0x413577
mov eax, dword [esp + 0x7c]
push eax
call fcn.0047d710
add esp, 4
mov ecx, dword [esp + 0x24]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x24], ecx
jl 0x41341b
mov al, byte [esp + 0x1b]
test al, al
jne 0x413672
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x48]
push eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov eax, ebp
mov word [ebp + 4], dx
call fcn.00402830
cmp dword [esp + 0x58], 8
jb 0x41373a
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x413732
cmp dword [esp + 0x74], esi
mov esi, dword [esp + 0x60]
jae 0x4135db
lea esi, [esp + 0x60]
push str.bakpath
mov edi, str.Softwareprojonepodlpdlpcore_
call fcn.0045e911
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0x64]
mov ebx, 7
xor ecx, ecx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], edi
push edx
mov eax, ebp
mov word [ebp + 4], cx
call fcn.00402830
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x413624
mov eax, dword [esp + 0x60]
push eax
call fcn.0047d710
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
cmp dword [esp + 0x90], esi
jb 0x413649
mov edx, dword [esp + 0x7c]
push edx
call fcn.0047d710
add esp, 4
xor eax, eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], ax
cmp dword [esp + 0x58], esi
jb 0x41373a
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x413732
movsx dx, al
movzx eax, dx
push eax
push str._c:podlp_backup
lea esi, [esp + 0x64]
call fcn.0045e820
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xb0], 3
call fcn.00402830
mov edi, 8
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x74], edi
jb 0x4136c1
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0047d710
add esp, 4
cmp dword [esp + 0x58], edi
jb 0x4136d8
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4136e5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4136e7
lea esi, [esp + 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4136e7
xor eax, eax
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push str.bakpath
push str.Softwareprojonepodlpdlpcore_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
lea ecx, [esp + 0x48]
mov word [ebp + 4], ax
push ecx
mov eax, ebp
call fcn.00402830
cmp dword [esp + 0x58], edi
jb 0x41373a
mov edx, dword [esp + 0x44]
push edx
call fcn.0047d710
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0047d444
add esp, 0x94
ret