Function at 0x4045b0
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 0x54b0e7
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.0040c5e0
push 0xa
push str._nNwmpe
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c8], ebx
call fcn.0040c4c0
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.00523d50
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], 8
mov byte [esp + 0x13], bl
jae 0x40467e
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 0x404804
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 0x4046d2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x5c
je 0x40473c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4046f6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x8a], 0x2f
je 0x40473c
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404720
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.0040fb40
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 1
call fcn.0040a7d0
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x40478a
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c25
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.00408d20
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x4047bc
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 0x4047e2
jl 0x4047de
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
jae 0x4047e2
mov bl, 1
jmp 0x4047e6
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x6c], 8
jb 0x4047fa
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00450c25
add esp, 4
test bl, bl
jne 0x40495e
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.00523d50
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 0x404846
sub eax, edx
sar eax, 1
je 0x4048f5
jmp 0x404860
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 0x4048b9
mov ecx, dword [esp + 0x24]
jg 0x40488c
cmp ecx, dword [esp + 0x14]
jbe 0x4048b9
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 0x4048a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040c5e0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4048c0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4048e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4048e0
sub eax, edx
sar eax, 1
jne 0x404860
push 0xe
lea esi, [edi + 0x18]
push str.Program_Files_
mov ecx, esi
call fcn.0040c4c0
push 0xa
push str._nNwmpe
mov ecx, esi
call fcn.0040c4c0
lea eax, [edi + 0xb8]
push eax
lea ecx, [esp + 0x58]
push 0x5892a0
push ecx
call fcn.0040fb40
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 2
call fcn.0040c3b0
mov byte [esp + 0x4c0], 0
cmp dword [esp + 0x6c], 8
jb 0x404960
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c25
add esp, 4
jmp 0x404960
xor ebx, ebx
mov eax, dword [edi + 0x328]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [eax + 0x2c]
call fcn.0040a7d0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x34]
call fcn.0040a7d0
push 0x5892a0
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0040fc00
lea ecx, [edi + 0x17c]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x4d8], 3
call fcn.0040fa40
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x5c]
mov byte [esp + 0x4cc], 4
call fcn.0040a7d0
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x4049d7
mov eax, dword [esp + 0x58]
push eax
call fcn.00450c25
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 0x4049fd
mov edx, dword [esp + 0x3c]
push edx
call fcn.00450c25
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x404a13
mov eax, dword [esp + 0x74]
push eax
call fcn.00450c25
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.00523c2c
mov esp, ebp
pop ebp
ret