Function at 0x419bd0
Capabilities:
Get disk information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov edx, dword [esp + 0x154]
mov edi, dword [esp + 0x150]
and edx, 7
cmp edx, 2
je 0x41a2b0
cmp edx, 4
je 0x41a25d
cmp edx, 3
je 0x41a123
cmp edx, 1
je 0x419e7c
test edx, edx
jne 0x419e50
test edi, edi
je 0x419e44
mov edx, dword [0x4396b8]
test edx, edx
jle 0x419c3d
lea esi, [esi]
xor eax, eax
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [0x4396b8], eax
test eax, eax
jle 0x419c30
lea ebx, [eax + 3]
xor ebp, ebp
xor esi, esi
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x419d68
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
movzx edx, byte [ebx]
mov edi, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [edi], 1
je 0x419e2e
mov dword [esp + 4], 0x103
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
je 0x419ca3
cmp byte [ebx + 1], 0x3a
je 0x419e24
mov edx, dword [0x4396b8]
movzx eax, byte [edx + ebx - 1]
cmp al, 0x2f
je 0x419e0f
cmp al, 0x5c
je 0x419e0f
test esi, esi
je 0x419ccb
cmp edx, 2
je 0x419e02
test edx, edx
jle 0x419d33
mov dword [esp + 4], 0x438d58
mov dword [esp], ebx
call fcn.0041a590
test eax, eax
jne 0x419cfb
mov esi, dword [0x438d58]
and esi, 0xf000
cmp esi, 0x4000
je 0x419df7
mov ebp, dword [0x428480]
test ebp, ebp
je 0x419ddd
mov dword [esp + 4], 0x1ff
mov dword [esp], ebx
call fcn.0041def0
inc eax
je 0x419d7a
xor ecx, ecx
mov edx, dword [0x4396b8]
test ecx, ecx
je 0x419d33
mov byte [edx + ebx], 0x2e
inc edx
mov dword [0x4396b8], edx
mov byte [edx + ebx], 0x2f
mov edi, edx
inc edx
mov dword [0x4396b8], edx
add edi, 2
mov byte [edx + ebx], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_realloc
mov dword [0x43929c], eax
test eax, eax
jne 0x419c30
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor esi, esi
mov dword [0x4396b8], esi
mov eax, 0xa00
jmp 0x419c32
mov dword [esp], ebx
mov dword [esp + 4], 0x430cb8
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4199f0
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_free
mov dword [0x4396b8], ebx
mov eax, 0x300
jmp 0x419c32
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor edx, edx
mov dword [0x4396b8], edx
mov eax, 0x200
jmp 0x419c32
mov edx, dword [0x4396b8]
jmp 0x419d33
test ebp, ebp
jne 0x419d33
jmp 0x419d28
dec edx
mov ebp, 1
mov dword [0x4396b8], edx
mov byte [edx + ebx], 0
jmp 0x419cbe
mov esi, 1
jmp 0x419ca3
mov edi, dword [sym.imp.msvcrt.dll__pctype]
mov ecx, dword [edi]
movzx eax, word [ecx + edx*2]
and eax, 0x103
jmp 0x419c95
xor eax, eax
mov dword [0x4396b8], eax
jmp 0x419c30
cmp edx, 5
mov eax, 0x6300
jne 0x419c32
mov ebp, dword [0x4396b8]
test ebp, ebp
jle 0x419c30
mov edx, dword [0x43929c]
mov dword [esp], edx
call sub.msvcrt.dll_free
jmp 0x419e44
mov eax, dword [0x4396b8]
mov edx, dword [0x439288]
mov ebx, dword [0x428410]
add eax, edx
test ebx, ebx
je 0x41a11d
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x4392a0], eax
mov esi, eax
test esi, esi
mov eax, 0xa00
je 0x419c32
mov eax, dword [0x4396b8]
mov ebx, dword [0x439288]
mov ecx, dword [0x428410]
add eax, ebx
test ecx, ecx
je 0x41a117
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x4392a4], eax
test eax, eax
je 0x41a104
mov ebp, dword [0x428cb4]
test byte [ebp + 0x18], 0x20
je 0x41a0c0
mov eax, dword [0x439284]
test eax, eax
je 0x41a09f
cmp byte [edi + 1], 0x3a
je 0x41a087
mov dword [esp + 4], 0x104
lea esi, [esp + 0x1c]
lea edx, [esp + 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp], 0x4188d6
call sub.KERNEL32.dll_GetFullPathNameA
sub esp, 0x10
cmp eax, 0x104
ja 0x41a048
movsx edi, byte [esp + 0x20]
mov ecx, dword [0x4392a0]
sub edi, 0x60
mov dword [0x43928c], edi
movzx ebx, byte [0x43928c]
add bl, 0x60
mov byte [ecx], bl
mov edx, dword [0x4392a0]
mov ecx, dword [0x428434]
movsx eax, byte [edx]
sub eax, 0x60
test ecx, ecx
mov dword [0x43928c], eax
je 0x41a01d
cmp byte [edx], 0x60
jle 0x41a01d
dec ecx
je 0x419fee
mov byte [edx], 0
mov edx, dword [0x4392a0]
mov ebp, dword [0x4392a4]
mov dword [0x4392a8], edx
mov dword [0x4392ac], ebp
movzx ecx, byte [edx]
test cl, cl
mov byte [ebp], cl
je 0x419c30
lea esi, [esi]
lea edi, [edi]
mov edi, dword [0x4392a8]
mov esi, dword [0x4392ac]
lea ecx, [edi + 1]
mov dword [0x4392a8], ecx
lea ebp, [esi + 1]
mov dword [0x4392ac], ebp
movzx ebx, byte [edi + 1]
test bl, bl
mov byte [esi + 1], bl
jne 0x419fc0
jmp 0x419c30
mov byte [esp + 0x19], 0x3a
add al, 0x40
lea ebp, [esp + 0x18]
mov byte [esp + 0x18], al
mov byte [esp + 0x1a], 0x2f
mov byte [esp + 0x1b], 0
mov dword [esp], ebp
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 2
je 0x41a03d
mov edx, dword [0x4392a0]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov edx, dword [0x4392a4]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, 0x1100
jmp 0x419c32
mov edx, dword [0x4392a0]
jmp 0x419f8d
mov dword [esp + 4], 0x419a30
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
mov eax, 0x100
jmp 0x419c32
movsx eax, byte [edi]
mov ebx, dword [0x4392a0]
mov dword [esp], eax
call sub.msvcrt.dll_tolower
mov byte [ebx], al
jmp 0x419f62
cmp dword [0x4396b8], 1
jle 0x419f10
mov eax, dword [0x43929c]
cmp byte [eax + 1], 0x3a
jne 0x419f10
movsx eax, byte [eax]
jmp 0x41a08a
mov eax, dword [0x439284]
test eax, eax
jne 0x41a0fe
mov esi, dword [0x4396b8]
test esi, esi
jle 0x41a0f0
mov ecx, dword [0x43929c]
mov dword [esp + 4], ecx
mov ebx, dword [0x4392a0]
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
jmp 0x419f90
mov edi, dword [0x4392a0]
mov byte [edi], 0
jmp 0x419f90
mov dword [esp + 4], edi
jmp 0x41a0dd
mov edi, dword [0x4392a0]
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x419d70
inc eax
jmp 0x419ed4
inc eax
jmp 0x419e9a
movzx ecx, byte [edi]
xor ebx, ebx
mov edx, dword [0x4392a8]
lea esi, [edi + 1]
mov ebp, esi
test cl, cl
mov byte [edx], cl
je 0x41a171
lea esi, [esi]
mov edx, dword [0x4392a8]
mov ecx, dword [0x4392a0]
lea eax, [edx + 1]
mov dword [0x4392a8], eax
sub eax, ecx
cmp eax, 0x3ff
jg 0x41a1e1
movzx ecx, byte [esi]
inc esi
mov edx, dword [0x4392a8]
mov byte [edx], cl
test cl, cl
jne 0x41a140
mov esi, dword [0x428cb4]
test byte [esi + 0x18], 0x20
je 0x41a1b0
movzx ecx, byte [edi]
mov esi, ebp
mov edi, dword [0x4392ac]
mov byte [edi], cl
test cl, cl
je 0x41a1a9
mov esi, esi
mov ebp, dword [0x4392ac]
lea eax, [ebp + 1]
mov dword [0x4392ac], eax
movzx ecx, byte [esi]
inc esi
test cl, cl
mov byte [ebp + 1], cl
jne 0x41a190
mov eax, ebx
jmp 0x419c32
mov esi, dword [0x4392a0]
mov dword [esp], esi
call fcn.004186e0
test eax, eax
sete dl
movzx ecx, dl
dec ecx
test dword [0x439294], ecx
je 0x41a17d
mov dword [esp + 4], 0x4392ac
mov dword [esp], edi
call fcn.0041bdf0
jmp 0x41a1a9
mov dword [0x4392a8], edx
mov byte [edx], 0
mov ebx, dword [0x4392a0]
mov dword [esp + 4], 0x434cb8
mov dword [esp], ebx
call fcn.00409b40
mov dword [esp + 4], 0x430cb8
mov ebx, eax
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov ebx, 0x100
mov dword [esp + 4], 0x419a70
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
jmp 0x41a161
mov dword [esp], edi
mov ebp, dword [0x4392a4]
xor ebx, ebx
mov dword [esp + 4], ebp
xor ebp, ebp
call sub.msvcrt.dll_strcpy
mov esi, dword [0x4392a4]
mov dword [esp], esi
call sub.msvcrt.dll_free
mov edx, dword [0x4392a0]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [0x4392a8], ebx
xor ecx, ecx
xor eax, eax
mov dword [0x4392ac], ecx
mov dword [0x4392a4], ebp
mov dword [0x4392a0], eax
jmp 0x419c30
movzx edx, byte [edi]
xor ebx, ebx
mov ecx, dword [0x4392a8]
mov byte [ecx], dl
test dl, dl
lea ecx, [edi + 1]
je 0x41a2e9
lea esi, [esi]
lea edi, [edi]
mov esi, dword [0x4392a8]
lea eax, [esi + 1]
mov dword [0x4392a8], eax
movzx edx, byte [ecx]
inc ecx
test dl, dl
mov byte [esi + 1], dl
jne 0x41a2d0
mov ebp, dword [0x4392a0]
mov dword [esp], ebp
call fcn.004186e0
test eax, eax
sete cl
movzx edx, cl
dec edx
test dword [0x439294], edx
jne 0x41a570
movzx edx, byte [edi]
lea ecx, [edi + 1]
mov esi, dword [0x4392ac]
mov byte [esi], dl
test dl, dl
je 0x41a339
mov esi, esi
mov edi, dword [0x4392ac]
lea eax, [edi + 1]
mov dword [0x4392ac], eax
movzx edx, byte [ecx]
inc ecx
test dl, dl
mov byte [edi + 1], dl
jne 0x41a320
mov ecx, dword [0x4392a8]
mov ebp, dword [0x4392a0]
sub ecx, ebp
cmp ecx, 0x3fd
jle 0x41a354
mov ebx, 1
mov dword [esp + 4], 0x438d58
mov edx, dword [0x4392a4]
mov dword [esp], edx
call fcn.0041a590
test eax, eax
je 0x41a510
mov esi, dword [0x428480]
test esi, esi
je 0x41a4e8
test ebx, ebx
jne 0x41a3e9
mov dword [esp + 4], 0x1ff
mov ecx, dword [0x4392a4]
mov dword [esp], ecx
call fcn.0041def0
inc eax
je 0x41a45e
mov esi, 1
mov dword [0x439280], esi
test ebx, ebx
jne 0x41a3e9
mov edi, dword [0x4392a8]
mov byte [edi], 0x2f
mov esi, dword [0x4392ac]
inc dword [0x4392a8]
mov byte [esi], 0x2f
mov ecx, dword [0x4392ac]
mov ebx, dword [0x4392a8]
lea edx, [ecx + 1]
mov dword [0x4392ac], edx
mov byte [ecx + 1], 0
mov byte [ebx], 0
jmp 0x419c30
mov dword [esp + 4], 0x430cb8
mov ebp, dword [0x4392a0]
mov dword [esp], ebp
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 4], 0x419ad0
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
mov edi, dword [0x4392a0]
mov dword [esp], edi
call sub.msvcrt.dll_free
mov esi, dword [0x4392a4]
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, 0x400
jmp 0x419c32
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 4], 0x434cb8
mov edx, dword [0x4392a4]
mov ebp, eax
mov dword [esp], edx
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 0x419b10
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
mov edx, dword [0x4392a0]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov ecx, dword [0x4392a4]
mov dword [esp], ecx
call sub.msvcrt.dll_free
jmp 0x419dd3
mov edi, dword [0x4392a0]
mov dword [esp], edi
call sub.msvcrt.dll_free
mov ebx, dword [0x4392a4]
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x419ded
mov edi, dword [0x438d58]
and edi, 0xf000
cmp edi, 0x4000
je 0x41a3ac
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 4], 0x434cb8
mov ebx, dword [0x4392a4]
mov ebp, eax
mov dword [esp], ebx
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 0x419b70
jmp 0x41a49a
mov dword [esp + 4], 0x4392ac
mov dword [esp], edi
call fcn.0041bdf0
jmp 0x41a339