Function at 0x433420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8d4
mov eax, dword [0x4af480]
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.00416940
mov ebx, eax
mov dword [esp + 0x20], ebx
mov ecx, ebx
mov dword [esp + 0x24], ebx
movzx eax, word [ebx]
test ax, ax
je 0x4334aa
mov edx, eax
cmp dx, 0x5c
je 0x433499
cmp dx, 0x2f
je 0x433499
add ecx, 2
jmp 0x4334a0
add ecx, 2
mov dword [esp + 0x24], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x433488
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 0x433597
cmp word [esp + 0xba], 0x3a
jne 0x433597
movzx eax, word [esp + 0xb8]
push eax
push str.._c:
lea eax, [esp + 0x60]
push 0x2e
push eax
call fcn.00401040
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 0x43356a
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 0x433564
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
je 0x4335cb
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.00401040
add esp, 0x10
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4335d1
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call esi
cmp eax, 0xffffffff
je 0x4335bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
jmp 0x4335db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4335d1
cmp eax, 0x13
je 0x4335d1
mov esi, dword [esp + 0x1c]
jmp 0x4335db
mov esi, dword [esp + 0x1c]
or esi, 0x100
mov eax, dword [edi + 0x18]
test al, 2
je 0x4335e8
or esi, 0x100
cmp dword [edi + 8], 0
je 0x4335f4
or esi, 0x100
test al, 4
je 0x4335fe
or esi, 0x80000
test al, 0x10
je 0x433608
or esi, 0x400000
test al, 0x20
je 0x43360f
or esi, 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43362e
mov eax, dword [eax + 0x30]
test al, 4
je 0x433624
or esi, 0x100
test al, al
jns 0x43362e
or esi, 0x80000
push dword [esp + 0x24]
lea eax, [esp + 0x2c4]
push 0x19e
push 0x30c
push eax
call fcn.0047d270
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.00415540
cmp dword [edi], 0
jne 0x43371b
push ebx
call fcn.00408e80
push 0x4a5b74
push eax
mov dword [esp + 0x30], eax
call fcn.00480a05
add esp, 8
test eax, eax
je 0x4336b7
push 0x4a5b68
push dword [esp + 0x2c]
call fcn.00480a05
add esp, 8
test eax, eax
jne 0x43371b
mov ebx, 0x4b0ff0
xor edi, edi
nop
push ebx
call fcn.00437980
lea eax, [esp + 0x10]
push eax
push esi
push 0
push dword [esp + 0x2c]
call fcn.00437100
test al, al
jne 0x43372f
add edi, 0x10
add ebx, 0x10
cmp edi, 0x20
jb 0x4336c0
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.004160c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
call fcn.00437100
test al, al
je 0x4336ee
jmp 0x433737
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 0x433812
mov ecx, 0xffdb
and word [esi + 0x30], cx
cmp dword [edi + 8], 0
je 0x4337b1
push dword [esp + 0x24]
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.00433070
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4337b1
push ebx
push eax
push 0x184
push dword [edi + 0x20]
call fcn.004160c0
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push 0
push 4
lea eax, [esp + 0x20]
push eax
push 0x27
push dword [esp + 0x20]
call fcn.0043a3e0
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.0043a3e0
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.0047d33b
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.004160c0
add esp, 0x10
mov dword [esp + 0x14], eax
push dword [esp + 0x10]
call fcn.00436ec0
mov ecx, dword [esp + 0x8dc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret