Function at 0x43c05c
Capabilities:
Get disk information

Disassembly:
sub esp, 0x500
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, ecx
push edi
push 0
push 0
mov eax, dword [ebp + 0x1c]
push 0x14b
push eax
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, 0x3a
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x19], al
mov al, byte [ebp + 0x40]
mov byte [esp + 0x16], 0
test al, al
mov byte [esp + 0x18], 0
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0x13], al
jne 0x43c0d3
call fcn.004a0117
add al, 0x40
mov byte [esp + 0x13], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
je 0x43c2bf
movsx edx, byte [ebx]
push edx
call fcn.004a01cd
add esp, 4
mov byte [esp + 0x14], al
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x43c150
cmp eax, 1
jne 0x43c121
cmp edx, 2
je 0x43c150
cmp eax, 2
jne 0x43c12b
cmp edx, 3
je 0x43c150
cmp eax, 3
jne 0x43c135
cmp edx, 5
je 0x43c150
cmp eax, 4
jne 0x43c13e
cmp edx, eax
je 0x43c150
cmp eax, 5
jne 0x43c290
cmp edx, 6
jne 0x43c290
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [edx - 3]
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
ja case.default.0x43c180
jmp dword [eax*4 + 0x43c30c]
lea ebx, [esp + 0x128]
mov edi, 0x4ee260
jmp 0x43c1bd
lea ebx, [esp + 0x128]
mov edi, 0x4ee254
jmp 0x43c1bd
lea ebx, [esp + 0x128]
mov edi, 0x4ee244
jmp 0x43c1bd
lea ebx, [esp + 0x128]
mov edi, 0x4ee230
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 3
jne 0x43c251
mov ebx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x331]
push 0x1f3
push ecx
push ebx
mov byte [esp + 0x33c], 0x20
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [esp + 0x31d]
test al, al
je 0x43c255
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43c255
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x128]
push eax
push 0
push 0x143
push ecx
call esi
mov cl, byte [esp + 0x14]
mov dl, byte [esp + 0x13]
cmp dl, cl
jne 0x43c280
mov dword [esp + 0x20], eax
movsx edx, cl
push edx
push eax
mov eax, dword [ebp + 0x1c]
push 0x151
push eax
call esi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
or ecx, 0xffffffff
mov edi, ebx
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x43c0ef
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x43c2e4
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x43c2ca
mov byte [ebp + 0x40], 0
mov ecx, dword [ebp + 0x1c]
push 0
push 0xffffffffffffffff
push 0x14e
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret
mov ecx, dword [ebp + 0x64]
test ecx, ecx
jne 0x43c2f2
mov dl, byte [esp + 0x13]
mov byte [ebp + 0x40], dl
push 0
push eax
mov eax, dword [ebp + 0x1c]
push 0x14e
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret