Function at 0x404800
Capabilities:
Get disk information
Get disk size
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a337
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
push esi
mov eax, dword [0x5af640]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
push 9
xor eax, eax
xor ebx, ebx
push 0x5884e4
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
call fcn.0040cc30
push 0xc
push str.ShengquGames
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c8], ebx
call fcn.0040cb10
push 0x208
lea edx, [esp + 0x92]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0x400
mov word [esp + 0x98], cx
call fcn.00523080
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], 8
mov byte [esp + 0x13], bl
jae 0x4048ce
lea eax, [esp + 0x74]
lea ecx, [esp + 0x20]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a54
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push str.BasePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404922
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x5c
je 0x40498c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404946
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x2f
je 0x40498c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404970
sub eax, edx
sar eax, 1
mov ecx, 0x5c
mov word [esp + eax*2 + 0x8c], cx
lea edx, [edi + 0xb8]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00410150
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 1
call fcn.0040ae40
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x4049da
mov edx, dword [esp + 0x58]
push edx
call fcn.004508d0
add esp, 4
mov eax, dword [edi + 0x78]
mov ebx, dword [edi + 0x7c]
mov dword [esp + 0x24], eax
xor eax, eax
push 3
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00409390
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x404a0c
lea eax, [esp + 0x58]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp ebx, dword [esp + 0x18]
jg 0x404a32
jl 0x404a2e
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
jae 0x404a32
mov bl, 1
jmp 0x404a36
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x6c], 8
jb 0x404a4a
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004508d0
add esp, 4
test bl, bl
jne 0x404bae
xor ebx, ebx
push 0x208
lea eax, [esp + 0x2a2]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x2a8], dx
call fcn.00523080
add esp, 0xc
lea esi, [esp + 0x29c]
mov ecx, esi
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404a96
sub eax, edx
sar eax, 1
je 0x404b45
jmp 0x404ab0
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x18]
jl 0x404b09
mov ecx, dword [esp + 0x24]
jg 0x404adc
cmp ecx, dword [esp + 0x14]
jbe 0x404b09
mov dword [esp + 0x18], eax
mov eax, esi
mov dword [esp + 0x14], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404af0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040cc30
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b10
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x404b30
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b30
sub eax, edx
sar eax, 1
jne 0x404ab0
push 0xe
lea esi, [edi + 0x18]
push str.Program_Files_
mov ecx, esi
call fcn.0040cb10
push 0xc
push str.ShengquGames
mov ecx, esi
call fcn.0040cb10
lea eax, [edi + 0xb8]
push eax
lea ecx, [esp + 0x58]
push 0x5883bc
push ecx
call fcn.00410150
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 2
call fcn.0040ca00
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x404bb0
mov edx, dword [esp + 0x58]
push edx
call fcn.004508d0
add esp, 4
jmp 0x404bb0
xor ebx, ebx
mov eax, dword [edi + 0x37c]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [eax + 0x2c]
call fcn.0040ae40
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x34]
call fcn.0040ae40
push 0x5883bc
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00410210
lea ecx, [edi + 0x17c]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x4d8], 3
call fcn.00410050
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x5c]
mov byte [esp + 0x4cc], 4
call fcn.0040ae40
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x404c27
mov eax, dword [esp + 0x58]
push eax
call fcn.004508d0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
cmp dword [esp + 0x50], esi
jb 0x404c4d
mov edx, dword [esp + 0x3c]
push edx
call fcn.004508d0
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x404c63
mov eax, dword [esp + 0x74]
push eax
call fcn.004508d0
add esp, 4
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.00522f5c
mov esp, ebp
pop ebp
ret