Function at 0x421c4b
Capabilities:
Check if file exists
Create directory
Get disk information
Get disk size
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0xc18
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0xc18], eax
push 0x2c
mov eax, 0x4c8415
call fcn.00492deb
xor ebx, ebx
push 0x20a
lea eax, [ebp + 0x800]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x800]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
mov edi, str.SOFTWARE360360userdatapath
push edi
push SysReAllocString
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x28], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp + 0x800], bx
je 0x421ceb
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421ceb
lea eax, [ebp + 0x800]
push eax
push esi
call fcn.00408620
mov eax, esi
jmp 0x421fd8
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00492200
add esp, 0xc
mov ecx, 0x50f384
lea esi, [ebp - 0x10]
call fcn.004080cd
mov ecx, 0x50f384
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004080cd
lea eax, [ebp]
push eax
push 0x400
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea esi, [ebp]
cmp word [ebp], bx
je 0x421e28
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.004085de
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x421e15
lea ecx, [ebp - 0x10]
call fcn.0041f7e8
test eax, eax
jne 0x421e15
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x421e15
mov ecx, dword [ebp - 0x10]
call fcn.0041f9dc
test eax, eax
jne 0x421e15
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x1c]
jb 0x421dbb
mov eax, dword [ebp - 0x38]
ja 0x421da5
cmp eax, dword [ebp - 0x20]
jb 0x421dbb
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
call fcn.00405208
mov edi, str.SOFTWARE360360userdatapath
xor eax, eax
push 0x208
mov word [ebp + 0xa0c], ax
lea eax, [ebp + 0xa0e]
push ebx
push eax
call fcn.00492200
push dword [ebp - 0x10]
lea eax, [ebp + 0xa0c]
push 0x105
push eax
call fcn.004906af
add esp, 0x18
push 0x4dabb4
lea eax, [ebp + 0xa0c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0xa0c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421ebc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x421d40
mov ecx, 0x50f384
lea esi, [ebp - 0x18]
call fcn.004080cd
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push 0x206
push ebx
cmp dword [eax - 0xc], ebx
jne 0x421f19
xor eax, eax
mov word [ebp + 0xa0c], ax
lea eax, [ebp + 0xa0e]
push eax
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.00421b3c
mov byte [ebp - 4], 3
mov eax, dword [eax]
push 0x104
mov dword [ebp - 0x30], eax
call fcn.0040849c
push 0x4dabb4
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push eax
lea eax, [ebp + 0xa0c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathBuildRootW]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00408396
lea esi, [ebp - 0x18]
jmp 0x421f7e
lea eax, [ebp + 0xa0c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x421ec5
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp + 0xa0c]
push eax
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp + 0xa0c]
push eax
push dword [ebp - 0x24]
call fcn.00408620
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x24]
jmp 0x421fd8
xor eax, eax
mov word [ebp + 0xa0c], ax
lea eax, [ebp + 0xa0e]
push eax
call fcn.00492200
add esp, 0xc
push ebx
lea esi, [ebp - 0x14]
call fcn.0040849c
push 0x104
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.0040849c
push 0x4dabb4
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push eax
lea eax, [ebp + 0xa0c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathBuildRootW]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.004234a1
lea esi, [ebp - 0x14]
or eax, 0xffffffff
call fcn.004234a1
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 0xfffffff0
mov eax, esi
call fcn.00407ffe
mov edi, dword [ebp - 0x24]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00408396
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc18]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0xc1c
leave
ret