Function at 0x465cb0
Capabilities:
Get disk information
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4a6339
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor esi, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], esi
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
mov dword [esp + 0x40], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x5c], esi
mov edi, 1
push 0x4c323c
lea ebx, [esi + 2]
mov eax, ebp
mov dword [esp + 0x40], edi
call fcn.0040cfc0
mov cx, word [0x4c3240]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4c323c]
mov ebx, 0x43
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], eax
mov word [esp + 0x48], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, dword [0x4da734]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
mov dword [esp + 0x38], esi
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], edi
push esi
push 0x4c3248
lea edi, [esp + 0x20]
call fcn.0040e820
mov esi, dword [esp + 0x20]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465db2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 2
mov eax, dword [esp + 0x38]
mov edx, 1
shl edx, cl
add ecx, 1
test eax, edx
je 0x465ead
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x44]
push ecx
mov word [esp + 0x48], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, dword [0x4da734]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x48]
push ecx
push 0x4c3290
lea edi, [esp + 0x24]
mov dword [esp + 0x68], 2
call fcn.0040e820
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [esp + 0x5c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465e45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 3
jne 0x465ea9
push ebx
call fcn.004658c0
add esp, 4
test eax, eax
jne 0x465ea9
push ebx
call fcn.00465a40
add esp, 4
test eax, eax
je 0x465ea9
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x465ea9
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x28]
jb 0x465ea9
mov eax, dword [esp + 0x2c]
ja 0x465e9a
cmp eax, dword [esp + 0x24]
jbe 0x465ea9
movzx edx, bx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
add ebx, 1
cmp bx, 0x5a
jbe 0x465db7
mov eax, dword [ebp]
mov esi, dword [eax - 0xc]
test esi, esi
jg 0x465ece
push 0x80070057
call fcn.00401050
cmp dword [eax - 4], 1
jle 0x465edd
mov eax, esi
push eax
push ebp
call fcn.0040d760
test esi, esi
mov eax, dword [ebp]
mov cx, word [esp + 0x1c]
mov word [eax], cx
jl 0x465ec4
mov eax, dword [ebp]
cmp esi, dword [eax - 8]
jg 0x465ec4
mov dword [eax - 0xc], esi
mov edx, dword [ebp]
mov word [edx + esi*2], 0
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00488fa3
add esp, 0x4c
ret