Function at 0x41f1e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
xor edi, edi
push 0xfe
mov esi, ecx
lea edx, [ebp - 0x126]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x138], esi
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x12c], edi
mov word [ebp - 0x128], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x134], edi
cmp esi, edi
jne 0x41f269
mov eax, 0x5604
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi]
mov dword [ebp - 0x148], ebx
cmp ebx, edi
jne 0x41f28b
mov eax, 0x5603
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x9b4]
mov ecx, dword [ebx + 0x9ac]
mov edx, dword [ebx + 0x9c4]
mov dword [ebp - 0x130], eax
lea eax, [ebx + 0x98c]
push eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], edx
call fcn.004446d6
mov esi, eax
add esp, 4
test esi, esi
je 0x41f2eb
push 0x2ac
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x41f2ef
push 0x2ac
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [edi + 0x28], esi
test edi, edi
jne 0x41f310
mov dword [ebp - 0x134], 0xffffffff
mov eax, dword [ebp - 0x134]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x130]
push 0x45f664
mov ecx, esi
call fcn.004024a0
mov ecx, dword [esi + 0xc]
push 0xfe
call fcn.004410cb
mov dword [esi + 0x360c0], eax
test eax, eax
je 0x41f341
push eax
mov ecx, esi
call fcn.004024a0
mov ecx, dword [ebx + 0x974]
mov esi, dword [ecx + 0x130]
test esi, esi
je 0x41f590
jmp 0x41f366
mov esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
cmp dword [edx + 0x1024], 0
je 0x41f590
mov ebx, dword [edi + 0x28]
push 0x2ac
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 1
push 0x460ba4
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [edi + 0x28], ebx
call fcn.0044cede
lea ecx, [ebp - 0x24]
add esp, 0x14
push ecx
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVCR100.dll__wcsupr]
add esp, 4
cmp word [ebp - 0x22], 0x3a
je 0x41f3cc
xor ecx, ecx
mov dword [ebp - 0x22], 0x5c003a
mov word [ebp - 0x1e], cx
lea edx, [ebp - 0x24]
push edx
call fcn.00441b39
add esp, 4
test eax, eax
je 0x41f583
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
test ebx, ebx
je 0x41f583
cmp ebx, 1
je 0x41f583
cmp ebx, 5
je 0x41f583
cmp ebx, 4
je 0x41f583
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x24]
push ecx
push 0xd9
push edx
call fcn.00441195
mov ecx, dword [ebp - 0x144]
add esp, 0xc
push eax
call fcn.00442125
cmp ebx, 3
jne 0x41f43f
mov dword [edi + 0xc], 1
movzx eax, word [ebp - 0x24]
mov esi, dword [ebp - 0x130]
push 0x3f
lea ecx, [ebp - 0x24]
push ecx
sub eax, 0x41
push 0xd9
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
call fcn.00402920
add esp, 8
push eax
lea edx, [edi + 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
mov eax, dword [ebp - 0x138]
add esp, 0xc
push edi
call fcn.0041ed90
add esp, 4
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x41f4d2
cmp dword [edi + 8], eax
jne 0x41f4dc
cmp ebx, 2
jne 0x41f4d2
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0044aae2
add esp, 0xc
test eax, eax
jne 0x41f4d2
lea ebx, [edi + 0x24]
mov ecx, esi
call fcn.004028f0
lea eax, [ebp - 0x24]
push eax
push 0xee
push 0xd
push ebx
call fcn.004027e0
add esp, 0x10
cmp dword [edi + 8], 0
je 0x41f56e
mov esi, dword [ebp - 0x148]
mov eax, dword [esi + 0x998]
test eax, eax
jne 0x41f4f4
mov dword [esi + 0x998], edi
jmp 0x41f524
cmp dword [ebp - 0x12c], 0
jne 0x41f51c
mov dword [ebp - 0x12c], eax
mov eax, dword [eax]
test eax, eax
je 0x41f51c
lea esp, [esp]
mov dword [ebp - 0x12c], eax
mov eax, dword [eax]
test eax, eax
jne 0x41f510
mov ecx, dword [ebp - 0x12c]
mov dword [ecx], edi
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x12c], edi
call fcn.0041ebc0
cmp dword [esi + 0xac4], 0
mov edi, eax
je 0x41f57a
cmp dword [edi + 8], 0
je 0x41f57a
mov ebx, dword [ebp - 0x130]
mov dword [ebx + 0x98], 1
mov eax, dword [esi + 0xdb4]
push edi
call fcn.00404580
mov dword [ebx + 0x98], 0
jmp 0x41f57a
mov ecx, dword [ebp - 0x130]
push edi
call fcn.00403320
cmp dword [ebp - 0x134], 0
jne 0x41f590
cmp dword [ebp - 0x13c], 0
jne 0x41f360
test edi, edi
je 0x41f5c0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41f5b6
mov edx, dword [ebp - 0x138]
push 1
push 0
push eax
mov eax, dword [edx]
add eax, 0x98c
push eax
call fcn.00444612
add esp, 0x10
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret