Function at 0x419230
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 0x4194cb
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 0x419268
push 0xb28e
call fcn.00422000
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 0x4194b0
mov ecx, dword [0x4d9540]
push 1
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4192a4
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 0x4192bf
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4192e1
mov ecx, dword [0x4d9540]
mov esi, eax
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4192d6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401630
mov edx, 0x4da754
test edx, edx
jne 0x4192ee
xor eax, eax
jmp 0x4192f9
push 0x4da754
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4da754
push eax
lea ecx, [esp + 0x18]
call fcn.00401850
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x419452
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.004ad550
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x4193aa
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x419343
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41934a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41938f
mov ebx, dword [eax - 8]
lea ecx, [esp + 0x10]
push ebx
mov esi, eax
call fcn.00401420
test eax, eax
je 0x4193aa
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 0x4193aa
lea ecx, [esp + 0x10]
call fcn.0040e950
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.004220d0
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 0x41942e
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4193e7
mov edx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4193f2
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4194d0
mov ebp, dword [ecx - 8]
mov esi, ecx
push ebp
mov ecx, ebx
call fcn.00401420
test eax, eax
je 0x41942a
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.004ada30
lea ecx, [esp + 0x2c]
mov dword [edi + 0x28], eax
call fcn.004acdf0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x419481
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x419481
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4194b0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4194b0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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 0x419271
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
mov ecx, ebx
call fcn.0040e950
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 0x41942e