Function at 0x4232b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x220]
push ebx
mov ebx, ecx
push ebp
mov dword [eax], 0
push esi
mov eax, dword [ebx + 0x20c]
push edi
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x4232e9
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov esi, dword [esp + 0x22c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
push esi
push ecx
call edi
lea edx, [esp + 0x22]
push 0x5c
push edx
call fcn.00498920
add esp, 8
test eax, eax
je 0x423315
mov byte [eax + 1], 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x42335c
cmp eax, 2
je 0x42335c
lea ecx, [esp + 0x20]
push esi
push ecx
call edi
mov eax, dword [ebx + 0x20c]
lea edx, [esp + 0x18]
push edx
push str.Local
push eax
call fcn.004221a0
add esp, 0xc
test eax, eax
jge 0x4233c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0043d080
add esp, 8
push 0x5c
push esi
call fcn.00498920
add esp, 8
test eax, eax
je 0x423387
lea edx, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4233a1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push 0x4be838
push eax
call edi
lea ecx, [esp + 0x20]
push esi
push ecx
call edi
mov eax, dword [ebx + 0x20c]
lea edx, [esp + 0x18]
push edx
push str.Removable
push eax
call fcn.004221a0
add esp, 0xc
test eax, eax
jl 0x423651
push 0x1c
call fcn.004985f0
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x423401
push 0x80
mov dword [ebp], 0x4aa7a4
call fcn.004985f0
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 0x423403
xor ebp, ebp
mov ecx, dword [ebx + 0x20c]
cmp ecx, esi
mov dword [esp + 0x14], ecx
je 0x423482
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x423472
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
add esp, 4
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.00498600
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 4
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x10]
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 + 0x18]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4234ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4234eb
add eax, dword [ebp + 0x14]
lea edx, [eax*4 + 4]
push edx
call fcn.004985f0
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov edi, ebx
lea ecx, [eax*4 + 4]
add esp, 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.00498600
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 4
add eax, ecx
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x10]
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 + 0x20c]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov al, byte [0x4caf4c]
mov ecx, 0x40
mov byte [esp + 0x124], al
xor eax, eax
lea edi, [esp + 0x125]
lea esi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x20]
mov dword [esp + 0x10], esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp cl, 0x5c
jne 0x423547
lea ecx, [esp + 0x22]
mov dword [esp + 0x10], ecx
mov esi, ecx
mov edx, dword [esp + 0x18]
mov cl, byte [esi]
cmp cl, 0x5c
je 0x423565
test cl, cl
je 0x423565
mov byte [esp + eax + 0x124], cl
inc eax
inc esi
mov dword [esp + 0x10], esi
jmp 0x42354b
mov byte [esp + eax + 0x124], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x124]
push eax
push ecx
push edx
call fcn.004221a0
add esp, 0xc
test eax, eax
jl 0x423651
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x42360c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4235f4
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
add esp, 4
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.00498600
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
add esp, 4
add eax, ecx
mov dword [ebp + 4], ebx
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 [esi]
mov edx, eax
xor eax, eax
mov dword [esp + 0x18], edx
test cl, cl
mov byte [esp + 0x124], 0
je 0x42362c
inc esi
mov dword [esp + 0x10], esi
jmp 0x42354b
push 0x28
call fcn.004985f0
add esp, 4
test eax, eax
je 0x423644
push ebp
mov ecx, eax
call fcn.00422680
jmp 0x423646
xor eax, eax
mov edx, dword [esp + 0x230]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8