Function at 0x45bfe4
Capabilities:
Access peb ldr_data
Get disk information
Get disk size
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov esi, edx
lea edi, [ebp - 8]
xor ecx, ecx
mov cl, byte [esi]
cmp cl, 2
jb 0x45c011
mov cl, 2
mov byte [edi], cl
inc esi
inc edi
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45c435
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 8]
mov cl, 2
call fcn.00402960
mov dword [ebp - 0x2c], 0xff
mov eax, dword [ebp - 0x2c]
call fcn.00408c48
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
lea eax, [ebp - 0x3c]
call fcn.00402944
mov edx, 0x45c444
lea eax, [ebp - 0x3c]
mov cl, 3
call fcn.00402914
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00403c58
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
call fcn.00408b10
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x45c08b
jmp dword [eax*4 + 0x45c092]
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 2
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 3
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 4
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 5
jmp case.default.0x45c08b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 6
mov eax, dword [ebp - 4]
mov dx, word [0x45c448]
mov word [eax + 0x1c], dx
mov eax, dword [ebp - 4]
call fcn.0045bab8
test al, al
je 0x45c3a2
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
xor eax, eax
push ebp
push 0x45c192
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 8
call fcn.00402748
mov ebx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x47af50]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x34], edx
mov edx, 8
mov eax, ebx
call fcn.00402760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c1d8
mov eax, dword [ebp - 0x2c]
call fcn.00408c48
mov ebx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00408c48
mov esi, eax
mov eax, dword [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
mov eax, dword [ebp - 0x2c]
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x45c40d
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00408c34
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00403a88
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00408c34
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00403a88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 8
call fcn.00408428
lea eax, [ebp - 0x48]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00403ebc
push dword [ebp - 0x48]
push 0x45c454
lea eax, [ebp - 0x4c]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x34]
call fcn.00403ebc
push dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, 3
call fcn.00403d74
mov eax, ebx
call fcn.00408c94
mov eax, esi
call fcn.00408c94
mov eax, dword [ebp - 0x24]
call fcn.00408c94
mov eax, dword [ebp - 0x30]
and eax, 1
cmp eax, 1
jne 0x45c2da
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c458]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 2
cmp eax, 2
jne 0x45c2fa
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c45c]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 4
cmp eax, 4
jne 0x45c31a
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c460]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 8
cmp eax, 8
jne 0x45c33a
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c464]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 0x8000
cmp eax, 0x8000
jne 0x45c35e
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c468]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x45c37e
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c46c]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
cmp dword [ebp - 0x28], 0xff
jne 0x45c40d
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x45c470]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
jmp 0x45c40d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00403a34
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00403a34
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00403a34
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c43c
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00403a58
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403a58
ret