Function at 0x46adb4
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 0x46ade1
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 0x46b205
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.00402f4c
mov dword [ebp - 0x2c], 0xff
mov eax, dword [ebp - 0x2c]
call fcn.00409434
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
lea eax, [ebp - 0x3c]
call fcn.00402f40
mov edx, 0x46b214
lea eax, [ebp - 0x3c]
mov cl, 3
call fcn.00402f10
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00404730
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
call fcn.004092c0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x46ae5b
jmp dword [eax*4 + 0x46ae62]
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 2
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 3
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 4
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 5
jmp case.default.0x46ae5b
mov eax, dword [ebp - 4]
mov byte [eax + 8], 6
mov eax, dword [ebp - 4]
mov dx, word [0x46b218]
mov word [eax + 0x1c], dx
mov eax, dword [ebp - 4]
call fcn.0046a274
test al, al
je 0x46b172
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 0x46af62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 8
call fcn.00402780
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 [0x48910c]
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.004027a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46afa8
mov eax, dword [ebp - 0x2c]
call fcn.00409434
mov ebx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00409434
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 0x46b1dd
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00409420
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00404528
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00409420
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404528
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.00408b24
lea eax, [ebp - 0x48]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.004049e4
push dword [ebp - 0x48]
push 0x46b224
lea eax, [ebp - 0x4c]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x34]
call fcn.004049e4
push dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, 3
call fcn.0040484c
mov eax, ebx
call fcn.00409480
mov eax, esi
call fcn.00409480
mov eax, dword [ebp - 0x24]
call fcn.00409480
mov eax, dword [ebp - 0x30]
and eax, 1
cmp eax, 1
jne 0x46b0aa
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b228]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 2
cmp eax, 2
jne 0x46b0ca
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b22c]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 4
cmp eax, 4
jne 0x46b0ea
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b230]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 8
cmp eax, 8
jne 0x46b10a
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b234]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 0x8000
cmp eax, 0x8000
jne 0x46b12e
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b238]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x46b14e
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b23c]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
cmp dword [ebp - 0x28], 0xff
jne 0x46b1dd
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1c]
or ax, word [0x46b240]
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], ax
jmp 0x46b1dd
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.004044d4
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.004044d4
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004044d4
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 0x46b20c
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.004044f8
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004044f8
ret