Function at 0x404680
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 0x54adb7
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
push esi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
push 9
xor eax, eax
xor ebx, ebx
push 0x5893c4
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
call fcn.0040c670
push 0xc
push str.ShengquGames
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c8], ebx
call fcn.0040c550
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.00523d70
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], 8
mov byte [esp + 0x13], bl
jae 0x40474e
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 0x4048d4
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 0x4047a2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x5c
je 0x40480c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4047c6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x2f
je 0x40480c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4047f0
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.0040fb60
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 1
call fcn.0040a880
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x40485a
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c1b
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.00408e10
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40488c
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 0x4048b2
jl 0x4048ae
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
jae 0x4048b2
mov bl, 1
jmp 0x4048b6
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x6c], 8
jb 0x4048ca
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00450c1b
add esp, 4
test bl, bl
jne 0x404a2e
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.00523d70
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 0x404916
sub eax, edx
sar eax, 1
je 0x4049c5
jmp 0x404930
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 0x404989
mov ecx, dword [esp + 0x24]
jg 0x40495c
cmp ecx, dword [esp + 0x14]
jbe 0x404989
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 0x404970
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040c670
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404990
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4049b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4049b0
sub eax, edx
sar eax, 1
jne 0x404930
push 0xe
lea esi, [edi + 0x18]
push str.Program_Files_
mov ecx, esi
call fcn.0040c550
push 0xc
push str.ShengquGames
mov ecx, esi
call fcn.0040c550
lea eax, [edi + 0xb8]
push eax
lea ecx, [esp + 0x58]
push 0x5892a0
push ecx
call fcn.0040fb60
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 2
call fcn.0040c440
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x404a30
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c1b
add esp, 4
jmp 0x404a30
xor ebx, ebx
mov eax, dword [edi + 0x328]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [eax + 0x2c]
call fcn.0040a880
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x34]
call fcn.0040a880
push 0x5892a0
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0040fc20
lea ecx, [edi + 0x17c]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x4d8], 3
call fcn.0040fa60
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x5c]
mov byte [esp + 0x4cc], 4
call fcn.0040a880
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x404aa7
mov eax, dword [esp + 0x58]
push eax
call fcn.00450c1b
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 0x404acd
mov edx, dword [esp + 0x3c]
push edx
call fcn.00450c1b
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x404ae3
mov eax, dword [esp + 0x74]
push eax
call fcn.00450c1b
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.00523c4c
mov esp, ebp
pop ebp
ret