Function at 0x412520
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47da6b
push eax
mov eax, 0x2040
mov dword fs:[0], esp
call fcn.00470a30
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call fcn.0043a8f0
mov ebp, dword [esi + 0x10]
xor edi, edi
or ebp, 0xa0
lea ecx, [esi + 0x27c]
push 0x4a3290
mov dword [esp + 0x205c], edi
mov dword [esi + 0x18], 0x200
mov dword [esi + 0x1c], 1
mov dword [esi + 0x21c], 0xc0000000
mov dword [esi + 0x10], ebp
call fcn.0043ae00
mov ecx, dword [esp + 0x2064]
mov dword [esi + 0x2a8], edi
mov dword [esi + 0x2ac], edi
lea eax, [esi + 0x264]
mov edx, dword [ecx]
push 0x4a3290
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x2b0]
call fcn.0043ae00
lea ecx, [esi + 0x334]
push 0x4a3290
call fcn.0043ae00
lea ecx, [esi + 0x360]
push 0x4a3290
call fcn.0043ae00
lea ecx, [esi + 0x38c]
push 0x4a3290
call fcn.0043ae00
mov edx, dword [esp + 0x2070]
mov eax, dword [esp + 0x206c]
mov ebx, dword [esp + 0x2060]
mov dword [esi + 0x260], edi
mov dword [esi + 0x468], edi
mov dword [esi + 0x6b0], edi
mov dword [esi + 0x278], edx
mov dword [esi + 0x274], eax
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0x78]
lea ebp, [esi + 0x1f0]
mov dword [esi + 0x260], ecx
push edi
mov ecx, ebp
call fcn.0043ae60
mov ecx, edi
call fcn.0043baf0
test eax, eax
je case.default.0x41268c
push 0
mov ecx, edi
call fcn.0043baa0
push eax
lea edx, [esp + 0x28]
push 0x493f30
push edx
call fcn.0043bde0
add esp, 0xc
lea ecx, [esp + 0x24]
push 0
call fcn.0043baa0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x41268c
jmp dword [eax*4 + 0x412b14]
mov dword [esi + 0x1c], 6
jmp case.default.0x41268c
mov dword [esi + 0x1c], 7
jmp case.default.0x41268c
mov dword [esi + 0x1c], 3
jmp case.default.0x41268c
mov edx, dword [esi + 0x274]
xor eax, eax
cmp edx, 1
setne al
add eax, 4
mov dword [esi + 0x1c], eax
jmp case.default.0x41268c
mov edx, dword [esi + 0x274]
xor ecx, ecx
cmp edx, 1
setne cl
inc ecx
mov dword [esi + 0x1c], ecx
push 0
mov ecx, ebp
call fcn.0043baa0
push eax
mov ecx, esi
call fcn.0041ab30
mov ecx, dword [esp + 0x2068]
add eax, ecx
mov ecx, ebx
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18c]
push eax
push 0
call fcn.00455320
lea edx, [esp + 0x24]
mov ecx, ebx
push edx
push 1
call fcn.00455320
cmp eax, 1
jne 0x4127a1
push eax
lea ecx, [esp + 0x28]
call fcn.0043b810
cmp eax, 0xffffffff
je 0x412733
push eax
lea ecx, [esp + 0x28]
call fcn.0043b220
lea eax, [esi + 0x2b0]
push 0
push eax
lea eax, [esi + 0x38c]
push eax
lea eax, [esi + 0x360]
push eax
lea eax, [esi + 0x334]
push eax
lea eax, [esi + 0x27c]
push eax
lea eax, [esi + 0x2ac]
push eax
lea eax, [esi + 0x2a8]
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0041acc0
lea ecx, [esi + 0x18c]
call fcn.0043baf0
test eax, eax
je 0x412791
push 0x493ebc
lea ecx, [esi + 0x18c]
call fcn.0043ae90
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x18c]
call fcn.0043aed0
push ebx
mov ecx, esi
call fcn.004110b0
mov ecx, edi
call fcn.0043baf0
test eax, eax
je 0x4127df
lea ecx, [esi + 0x18c]
call fcn.0043baf0
test eax, eax
je 0x4127d3
push 0x493ebc
lea ecx, [esi + 0x18c]
call fcn.0043ae90
push edi
lea ecx, [esi + 0x18c]
call fcn.0043aed0
mov ecx, ebp
mov dword [esp + 0x14], 0
call fcn.0043baf0
test eax, eax
mov edi, 1
je 0x4129dc
cmp dword [esi + 0x274], edi
jne 0x41282a
lea edx, [esi + 0x1b8]
mov ecx, ebx
push edx
call fcn.00455630
mov eax, dword [esi + 0x274]
mov ecx, esi
push eax
call fcn.0041b870
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 8]
jmp 0x41284d
mov ecx, esi
call fcn.004122b0
push 0
mov ecx, ebp
call fcn.0043baa0
push 0
mov ecx, ebp
call fcn.0043baa0
push eax
mov ecx, esi
call fcn.00411bb0
mov edi, eax
push 0
push 0
push 3
push 0
push 3
push 0
push 0
mov ecx, ebp
call fcn.0043baa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4129dc
xor ebp, ebp
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x58]
push 0x2000
push ecx
lea edx, [esp + 0x60]
push 0x2000
push edx
push 0x4d0008
push ebx
mov ecx, esi
mov edi, 1
call fcn.0041d5d0
test eax, eax
je 0x4129cf
cmp dword [esp + 0x10], ebp
je 0x4129cf
cmp dword [esi + 0x274], ebp
jne 0x4128c8
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.00410eb0
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x58]
push 0x2000
push edx
lea eax, [esp + 0x28]
push 0xc
push eax
push 0x2d1400
push ebx
mov ecx, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebp
call fcn.0041d5d0
test eax, eax
je 0x4129cf
cmp dword [esp + 0x10], ebp
je 0x4129cf
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x50]
and eax, 0xff
mov dword [esp + 0x14], ecx
cmp eax, 0xe
ja case.0x412928.3
xor edx, edx
mov dl, byte [eax + 0x412b38]
jmp dword [edx*4 + 0x412b28]
mov eax, dword [esi + 0x1c]
cmp eax, 4
je 0x41294e
cmp eax, 5
je 0x41294e
mov edx, dword [esi + 0x274]
xor eax, eax
cmp edx, 1
setne al
inc eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x50], ebp
jne 0x412986
jmp 0x41297f
mov eax, dword [esi + 0x50]
mov dword [esi + 0x1c], 3
cmp eax, ebp
jne 0x412986
mov dword [esi + 0x50], 0x800
jmp 0x412986
mov dword [esi + 0x1c], 8
jmp 0x412986
mov eax, dword [esi + 0x50]
mov dword [esi + 0x1c], ebp
cmp eax, ebp
jne 0x412986
mov dword [esi + 0x50], 0x200
mov eax, dword [esp + 0x6c]
cmp eax, 1
jne 0x41299a
mov ecx, dword [esi + 0x20]
and cl, 4
or ecx, 4
jmp 0x4129cc
cmp eax, 7
jne 0x4129ad
mov edx, dword [esi + 0x20]
and dl, 2
or edx, 2
mov dword [esi + 0x20], edx
jmp 0x4129cf
cmp eax, 4
jne 0x4129be
mov eax, dword [esi + 0x20]
and al, 8
or al, 8
mov dword [esi + 0x20], eax
jmp 0x4129cf
cmp eax, 9
jne 0x4129cf
mov ecx, dword [esi + 0x20]
and cl, 0x20
or ecx, 0x20
mov dword [esi + 0x20], ecx
cmp ebx, ebp
je 0x4129de
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4129de
xor ebp, ebp
test byte [0x4a32e0], 8
jne 0x412a17
mov eax, dword [esi + 0x2a8]
cmp eax, 0x7ab
jne 0x412a00
cmp dword [esi + 0x2ac], 0xfcfd
je 0x412a07
cmp eax, 0x644
jne 0x412a10
mov ecx, esi
call fcn.00418a30
jmp 0x412a17
mov ecx, esi
call fcn.00418b10
mov al, byte [0x4a32e0]
mov bl, 0x10
test bl, al
jne 0x412a66
mov ecx, esi
call fcn.004187d0
cmp dword [esi + 0x274], ebp
je 0x412a40
lea ecx, [esi + 0x1b8]
call fcn.0043baf0
test eax, eax
jne 0x412a48
push ebp
mov ecx, esi
call fcn.00419b30
test byte [0x4a32e0], bl
jne 0x412a66
mov ecx, esi
call fcn.00418660
test byte [0x4a32e0], bl
jne 0x412a66
mov ecx, esi
call fcn.004188e0
test dword [esi + 0x10], 0x40000040
jne 0x412a7f
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x412a7f
push eax
mov ecx, esi
call fcn.00418470
test byte [0x4a32e0], bl
jne 0x412a8e
mov ecx, esi
call fcn.00418ef0
cmp edi, 1
jne 0x412ab9
mov ecx, esi
call fcn.0041b5a0
cmp dword [esi + 0x274], ebp
jne 0x412ab9
test byte [0x4a32e0], bl
jne 0x412ab9
push ebp
mov ecx, esi
call fcn.0041b970
mov ecx, esi
call fcn.00418980
cmp dword [esp + 0x2074], 1
jne 0x412aca
or dword [esi + 0x20], 0x80000000
mov eax, dword [esi + 0x6b0]
cmp eax, ebp
je 0x412ae2
mov edx, dword [eax + 0xd4]
mov eax, dword [esi + 0x14]
add eax, edx
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2058], 0xffffffff
call fcn.0043a990
mov ecx, dword [esp + 0x2050]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x204c
ret 0x18