Function at 0x41d4d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebp
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x41d76b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
test ecx, ecx
mov dword [esp + 0x10], 1
je 0x41d508
push 0xb28e
call fcn.0042a950
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test eax, ecx
je 0x41d750
mov ecx, dword [0x546560]
push 1
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x41d544
mov eax, dword [esp + 0x14]
lea edx, [edi + 0x41]
mov word [eax], dx
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x41d55f
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d581
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [esp + 0x10], ecx
je 0x41d576
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
mov edx, 0x5479fc
test edx, edx
jne 0x41d58e
xor eax, eax
jmp 0x41d599
push 0x5479fc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5479fc
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x41d6f2
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.005106b0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x41d64a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41d5e3
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41d5ea
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41d62f
mov ebx, dword [eax - 8]
lea ecx, [esp + 0x10]
push ebx
mov esi, eax
call fcn.00405660
test eax, eax
je 0x41d64a
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
mov ecx, eax
mov ebp, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
jmp 0x41d64a
lea ecx, [esp + 0x10]
call fcn.00412670
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp + 0x3c]
push 0
add edi, 0xb28f
push 7
push edi
push 0
call fcn.0042aa20
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [edi + 0x60]
mov dword [esp + 0x28], edi
lea ebx, [edi + 0x60]
cmp eax, ecx
je 0x41d6ce
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41d687
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x41d692
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41d770
mov ebp, dword [ecx - 8]
mov esi, ecx
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x41d6ca
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, dword [esp + 0x28]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0xbc]
push 1
lea ecx, [esp + 0x30]
mov dword [edi + 0x2c], edx
call fcn.00510bb0
lea ecx, [esp + 0x2c]
mov dword [edi + 0x28], eax
call fcn.0050fe40
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d721
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d721
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d750
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d750
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov edx, dword [esp + 0x1c]
shl edx, 1
inc edi
mov dword [esp + 0x1c], edx
cmp edi, 0x1a
mov dword [esp + 0x20], edi
jl 0x41d511
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
mov ecx, ebx
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d6ce