Function at 0x42a150
Capabilities:
Get disk information

Disassembly:
sub esp, 0x564
mov eax, dword [esp + 0x56c]
push ebx
mov ebx, ecx
push ebp
mov dword [eax], 0
push esi
mov eax, dword [ebx + 0x310]
push edi
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x42a189
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x564
ret 8
mov dl, byte [0x4eb858]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], dl
mov byte [esp + 0x470], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x471]
mov esi, dword [esp + 0x578]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x268]
stosw word es:[edi], ax
push esi
push ecx
stosb byte es:[edi], al
call ebp
lea edx, [esp + 0x268]
push edx
call fcn.0044b0b0
add esp, 4
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esp + 0x470]
lea edx, [esp + 0x268]
push ecx
push edx
mov edi, eax
call fcn.0044b090
add esp, 8
lea eax, [esp + 0x60]
push esi
push eax
call ebp
cmp edi, 5
je 0x42a3a1
cmp edi, 2
je 0x42a3a1
cmp edi, 4
jne 0x42a313
cmp byte [esp + 0x61], 0x3a
jne 0x42a285
mov cl, byte [0x4eb858]
xor eax, eax
mov byte [esp + 0x36c], cl
mov ecx, 0x40
lea edi, [esp + 0x36d]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x36c]
push edx
push eax
call fcn.00406410
add esp, 8
test eax, eax
je 0x42a285
lea ecx, [esp + 0x36c]
lea edx, [esp + 0x60]
push ecx
push edx
call ebp
mov esi, dword [ebx + 0x310]
lea eax, [esp + 0x20]
push eax
push str.Remote
call fcn.00428950
add esp, 8
mov ecx, dword [esi]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push 0
push 0
push 0x12
push 0
push eax
push esi
call dword [ecx + 0x18]
test eax, eax
jge 0x42a464
cmp eax, 0x80030002
jne 0x42a2dc
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push 0x12
push eax
push esi
call dword [ecx + 0x14]
jmp 0x42a2fe
cmp eax, 0x80030005
jne 0x42a2fe
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x100040
lea eax, [esp + 0x30]
push 0
push eax
push esi
call dword [ecx + 0x18]
test eax, eax
jge 0x42a464
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x564
ret 8
mov esi, dword [ebx + 0x310]
lea ecx, [esp + 0x20]
push ecx
push str.Local
call fcn.00428950
add esp, 8
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push 0x12
push 0
push ecx
push esi
call dword [edx + 0x18]
test eax, eax
jge 0x42a464
cmp eax, 0x80030002
jne 0x42a36a
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x2c]
push 0x12
push ecx
push esi
call dword [edx + 0x14]
jmp 0x42a38c
cmp eax, 0x80030005
jne 0x42a38c
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x100040
lea ecx, [esp + 0x30]
push 0
push ecx
push esi
call dword [edx + 0x18]
test eax, eax
jge 0x42a464
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x564
ret 8
lea edx, [esp + 0x470]
lea eax, [esp + 0x60]
push edx
push eax
call ebp
push 0x5c
push esi
call fcn.004bea70
add esp, 8
test eax, eax
je 0x42a3cd
lea ecx, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x42a3e7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x60]
push 0x4e076c
push edx
call edi
lea eax, [esp + 0x60]
push esi
push eax
call edi
mov esi, dword [ebx + 0x310]
lea ecx, [esp + 0x20]
push ecx
push str.Removable
call fcn.00428950
add esp, 8
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push 0x12
push 0
push ecx
push esi
call dword [edx + 0x18]
test eax, eax
jge 0x42a464
cmp eax, 0x80030002
jne 0x42a43a
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x2c]
push 0x12
push ecx
push esi
call dword [edx + 0x14]
jmp 0x42a45c
cmp eax, 0x80030005
jne 0x42a45c
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x100040
lea ecx, [esp + 0x30]
push 0
push ecx
push esi
call dword [edx + 0x18]
test eax, eax
jl 0x42a780
push 0x1c
call fcn.004be967
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x42a4a3
push 0x80
mov dword [ebp], 0x4cc81c
call fcn.004be967
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], 0x1f
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], 0x40
jmp 0x42a4a5
xor ebp, ebp
mov ecx, dword [ebx + 0x310]
cmp ecx, esi
mov dword [esp + 0x14], ecx
je 0x42a521
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x42a511
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
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 eax, dword [ebp + 4]
push eax
call fcn.004be975
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], eax
je 0x42a59b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x42a587
add eax, dword [ebp + 0x14]
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov edi, ebx
lea ecx, [eax*4 + 4]
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 eax, dword [ebp + 4]
push eax
call fcn.004be975
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, ecx
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x310]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov al, byte [0x4eb858]
mov ecx, 0x40
mov byte [esp + 0x164], al
xor eax, eax
lea edi, [esp + 0x165]
lea ebx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x60]
mov dword [esp + 0x18], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp cl, 0x5c
jne 0x42a5e3
lea ecx, [esp + 0x62]
mov dword [esp + 0x18], ecx
mov ebx, ecx
mov esi, dword [esp + 0x10]
mov cl, byte [ebx]
cmp cl, 0x5c
je 0x42a601
test cl, cl
je 0x42a601
mov byte [esp + eax + 0x164], cl
inc eax
inc ebx
mov dword [esp + 0x18], ebx
jmp 0x42a5e7
test eax, eax
je 0x42a729
mov byte [esp + eax + 0x164], 0
lea edx, [esp + 0x20]
lea eax, [esp + 0x164]
push edx
push eax
call fcn.00428950
add esp, 8
mov ecx, dword [esi]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push 0
push 0
push 0x12
push 0
push eax
push esi
call dword [ecx + 0x18]
test eax, eax
jge 0x42a68b
cmp eax, 0x80030002
jne 0x42a661
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push 0x12
push eax
push esi
call dword [ecx + 0x14]
jmp 0x42a683
cmp eax, 0x80030005
jne 0x42a683
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x100040
lea eax, [esp + 0x30]
push 0
push eax
push esi
call dword [ecx + 0x18]
test eax, eax
jl 0x42a780
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x42a709
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x42a6f1
add eax, dword [ebp + 0x14]
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov edi, ebx
lea ecx, [eax*4 + 4]
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 eax, dword [ebp + 4]
push eax
call fcn.004be975
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, ecx
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
mov cl, byte [ebx]
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], esi
test cl, cl
mov byte [esp + 0x164], 0
je 0x42a729
inc ebx
mov dword [esp + 0x18], ebx
jmp 0x42a5e7
push 0x28
call fcn.004be967
mov esi, eax
add esp, 4
test esi, esi
je 0x42a773
push 0x138b
lea ecx, [esi + 0xc]
call fcn.0042cae0
mov dword [esi], ebp
mov eax, dword [ebp + 8]
test eax, eax
jle 0x42a756
mov edx, dword [ebp + 4]
mov eax, dword [edx]
jmp 0x42a758
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
dec eax
mov ecx, ebp
push eax
call fcn.0042cac0
mov dword [esi + 8], eax
mov dword [esi + 0x1c], 1
jmp 0x42a775
xor esi, esi
mov eax, dword [esp + 0x57c]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x564
ret 8