Function at 0x431c60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8d4
mov eax, dword [0x4ae480]
xor eax, esp
mov dword [esp + 0x8d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.004168c0
mov ebx, eax
mov dword [esp + 0x20], ebx
mov ecx, ebx
mov dword [esp + 0x24], ebx
movzx eax, word [ebx]
test ax, ax
je 0x431cea
mov edx, eax
cmp dx, 0x5c
je 0x431cd9
cmp word [ecx], 0x2f
je 0x431cd9
add ecx, 2
jmp 0x431ce0
add ecx, 2
mov dword [esp + 0x24], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x431cc8
push 0
lea eax, [esp + 0xbc]
mov dword [esp + 0x34], 0
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [esp + 0xb8]
call dword [sym.imp.USER32.dll_IsCharAlphaW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x431dd7
cmp word [esp + 0xba], 0x3a
jne 0x431dd7
movzx eax, word [esp + 0xb8]
push eax
push str.._c:
lea eax, [esp + 0x60]
push 0x2e
push eax
call fcn.00401670
add esp, 0x10
lea eax, [esp + 0x58]
push 0
push 0
push 3
push 0
push 3
push 0x80
push eax
call esi
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x431daa
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0x70024
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [esp + 0x28]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x431da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
je 0x431e0b
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
movzx eax, word [esp + 0xb8]
push eax
push str._c:_
lea eax, [esp + 0x60]
push 0x2e
push eax
call fcn.00401670
add esp, 0x10
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x431e11
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call esi
cmp eax, 0xffffffff
je 0x431dfb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
jmp 0x431e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x431e11
cmp eax, 0x13
je 0x431e11
mov esi, dword [esp + 0x1c]
jmp 0x431e1b
mov esi, dword [esp + 0x1c]
or esi, 0x100
mov eax, dword [edi + 0x18]
test al, 2
je 0x431e28
or esi, 0x100
cmp dword [edi + 8], 0
je 0x431e34
or esi, 0x100
test al, 4
je 0x431e3e
or esi, 0x80000
test al, 0x10
je 0x431e48
or esi, 0x400000
test al, 0x20
je 0x431e4f
or esi, 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x431e6e
mov eax, dword [eax + 0x30]
test al, 4
je 0x431e64
or esi, 0x100
test al, al
jns 0x431e6e
or esi, 0x80000
push dword [esp + 0x24]
lea eax, [esp + 0x2c4]
push 0x19e
push 0x30c
push eax
call fcn.0047c1a0
xorps xmm0, xmm0
mov dword [esp + 0x5c], 1
add esp, 0x10
movlpd qword [esp + 0x40], xmm0
lea eax, [esp + 0x2c0]
movlpd qword [esp + 0x50], xmm0
lea edx, [esp + 0x38]
mov dword [esp + 0x48], eax
movlpd qword [esp + 0x38], xmm0
call fcn.00415500
cmp dword [edi], 0
jne 0x431f5b
push ebx
call fcn.00408ec0
push 0x4a4b0c
push eax
mov dword [esp + 0x30], eax
call fcn.0047fa85
add esp, 8
test eax, eax
je 0x431ef7
push 0x4a4b00
push dword [esp + 0x2c]
call fcn.0047fa85
add esp, 8
test eax, eax
jne 0x431f5b
mov ebx, 0x4b0000
xor edi, edi
nop
push ebx
call fcn.004361f0
lea eax, [esp + 0x10]
push eax
push esi
push 0
push dword [esp + 0x2c]
call fcn.00435960
test al, al
jne 0x431f6f
add edi, 0x10
add ebx, 0x10
cmp edi, 0x20
jb 0x431f00
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x184
push dword [edi + 0x20]
call fcn.00416080
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
call fcn.00435960
test al, al
je 0x431f2e
jmp 0x431f77
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push eax
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [esp + 0x44]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432052
mov ecx, 0xffdb
and word [esi + 0x30], cx
cmp dword [edi + 8], 0
je 0x431ff1
push dword [esp + 0x24]
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.004318a0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x431ff1
push ebx
push eax
push 0x184
push dword [edi + 0x20]
call fcn.00416080
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push 0
push 4
lea eax, [esp + 0x20]
push eax
push 0x27
push dword [esp + 0x20]
call fcn.00438c60
mov eax, dword [esp + 0x18]
and eax, 1
push 0
shl eax, 2
or word [esi + 0x30], ax
lea eax, [esp + 0x3c]
push 0x18
push eax
push 1
push dword [esp + 0x20]
call fcn.00438c60
xor eax, eax
mov ecx, 0x20
cmp dword [esp + 0x4c], eax
cmove eax, ecx
or word [esi + 0x30], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x184
push dword [edi + 0x20]
call fcn.00416080
add esp, 0x10
mov dword [esp + 0x14], eax
push dword [esp + 0x10]
call fcn.00435720
mov ecx, dword [esp + 0x8dc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret