Function at 0x45f6d0
Capabilities:
Get disk information
Get disk size
Get memory capacity
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x224
lea eax, [esp + 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x4c]
sub eax, 0x182
je 0x45f717
sub eax, 0x64
je 0x45f70a
mov ebx, dword [esp + 0x22c]
sub eax, 0x64
je 0x45f704
mov byte [ebx + 1], 4
jmp 0x45f722
mov byte [ebx + 1], 3
jmp 0x45f722
mov ebx, dword [esp + 0x22c]
mov byte [ebx + 1], 2
jmp 0x45f722
mov ebx, dword [esp + 0x22c]
mov byte [ebx + 1], 1
push 0xffffffffffffffff
call fcn.004c3750
add esp, 4
cmp ax, 0x2ee
mov word [ebx + 2], ax
jbe 0x45f73c
mov word [ebx + 2], 0
mov cl, byte [esp + 0x48]
lea edx, [esp + 0x17c]
push edx
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x45f760
xor eax, eax
pop ebx
add esp, 0x224
ret
mov ecx, dword [esp + 0x17c]
mov eax, 0x88888889
imul ecx
add edx, ecx
push ebp
mov dword [ebx + 0x8c], ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x1c]
sar edx, 5
push edi
mov eax, edx
push ecx
push 1
shr eax, 0x1f
push 0
add edx, eax
push str.SystemCurrentControlSetServicesClass_
push reloc.WSOCK32.dll_bind
mov dword [0xc261c4], edx
call esi
test eax, eax
jne 0x45f8f8
lea edx, [esp + 0x18]
lea edi, [ebx + 0x45]
push edx
push 1
mov byte [edi], al
mov byte [ebx + 0x65], al
push eax
mov eax, dword [esp + 0x2c]
push str.Modem
push eax
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45f866
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push str._04d
push edx
call fcn.004de113
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 1
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x45f866
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 0
push str.Manufacturer
push ecx
mov dword [esp + 0x34], 0x20
call ebp
test eax, eax
jne 0x45f866
lea edx, [esp + 0x1c]
lea eax, [ebx + 0x65]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push str.Model
push eax
mov dword [esp + 0x34], 0x20
call ebp
test eax, eax
jne 0x45f866
mov eax, dword [esp + 0x10]
inc eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x45f7de
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 1
lea edi, [ebx + 5]
push 0
push str.Display
push edx
mov byte [edi], 0
mov byte [ebx + 0x25], 0
call esi
test eax, eax
jne 0x45f8f8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.0000
push ecx
call esi
test eax, eax
jne 0x45f8be
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x20
push edx
push edi
push eax
push eax
mov eax, dword [esp + 0x20]
push str.DriverDesc
push eax
call ebp
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.0001
push edx
call esi
test eax, eax
jne 0x45f8f8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x25]
push eax
push 0
push 0
push str.DriverDesc
push ecx
mov dword [esp + 0x2c], 0x20
call ebp
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
shr eax, 0x14
push 0
push 0
mov word [ebx + 0x86], ax
mov word [ebx + 0x88], 0
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.004ddf8e
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], ebp
push ebp
push esi
call edi
mov edx, ebp
cmp byte [edx], 0
je 0x45fa2c
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x45fa17
mov al, byte [ebp]
mov edi, 0x50dec4
mov byte [esp + 0x84], al
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x85], 0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x45fa03
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x18]
fild qword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fmul dword [0x4f78bc]
fild qword [esp + 0x34]
fmulp st(1)
fild qword [esp + 0x24]
fmulp st(1)
call fcn.004ddfec
xor ecx, ecx
mov cx, word [ebx + 0x88]
cmp eax, ecx
jb 0x45fa17
mov word [ebx + 0x88], ax
cmp byte [ebp], 0
je 0x45fa20
inc ebp
jmp 0x45fa17
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x45f949
mov edx, dword [esp + 0x14]
push edx
call fcn.004ddac0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret