Function at 0x41d3b0
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 0x41d64b
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 0x41d3e8
push 0xb28e
call fcn.0042a9f0
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 0x41d630
mov ecx, dword [0x547570]
push 1
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x41d424
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 0x41d43f
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d461
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [esp + 0x10], ecx
je 0x41d456
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
mov edx, 0x548a0c
test edx, edx
jne 0x41d46e
xor eax, eax
jmp 0x41d479
push 0x548a0c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x548a0c
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x41d5d2
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00510fb0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x41d52a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41d4c3
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41d4ca
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41d50f
mov ebx, dword [eax - 8]
lea ecx, [esp + 0x10]
push ebx
mov esi, eax
call fcn.00405660
test eax, eax
je 0x41d52a
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 0x41d52a
lea ecx, [esp + 0x10]
call fcn.004124c0
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.0042aac0
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 0x41d5ae
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41d567
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x41d572
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41d650
mov ebp, dword [ecx - 8]
mov esi, ecx
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x41d5aa
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.005114b0
lea ecx, [esp + 0x2c]
mov dword [edi + 0x28], eax
call fcn.00510740
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d601
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d601
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d630
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d630
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 0x41d3f1
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
mov ecx, ebx
call fcn.004124c0
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 0x41d5ae