Function at 0x4e1100
Capabilities:
Get disk information
Get disk size
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538898
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], 0
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e1160
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1175
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e1177
call edx
add eax, 0x10
mov dword [esi], eax
push 2
mov dword [ebp - 4], 0
mov ecx, esi
push 0x55c0bc
mov dword [ebp - 0x3c], 1
call fcn.00402d50
mov eax, dword [0x55c0c4]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov ecx, 0x43
mov dword [ebp - 0x18], eax
mov ax, word [0x55c0c8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [ebp - 0x40], ebx
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4e11e5
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e11fa
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e11fc
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push str._Downloader__GetLogicalDrives__d_n
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e125a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1258
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e125a
call edx
mov ebx, 2
lea edi, [ebx + 0x41]
mov ecx, ebx
mov eax, 1
shl eax, cl
inc ebx
test dword [ebp - 0x40], eax
je 0x4e1375
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov dword [ebp - 0x2c], esi
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4e1156
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e12b3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e12b5
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push 0x55c160
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e1317
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1315
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e1317
call edx
cmp dword [ebp - 0x2c], 3
jne 0x4e1375
mov ecx, edi
call fcn.004e05c0
test eax, eax
jne 0x4e1375
mov ecx, edi
call fcn.004e0400
test eax, eax
je 0x4e1375
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4e1375
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x24]
jb 0x4e1375
mov eax, dword [ebp - 0x38]
ja 0x4e1369
cmp eax, dword [ebp - 0x20]
jbe 0x4e1375
movzx edx, di
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
inc edi
cmp di, 0x5a
jbe 0x4e1262
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
jg 0x4e1396
push 0x80070057
call fcn.00401b40
cmp dword [eax - 4], 1
jle 0x4e13a4
push esi
mov ecx, ebx
call fcn.00402b70
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov word [eax], cx
test esi, esi
js 0x4e138c
mov ecx, dword [ebx]
cmp esi, dword [ecx - 8]
jg 0x4e138c
mov dword [ecx - 0xc], esi
xor eax, eax
mov ecx, dword [ebx]
mov word [ecx + esi*2], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret