Function at 0x413b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44092b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4540fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x22c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 1
cmp dword [ebx + 0x64], 0
jne 0x413d58
mov eax, dword [0x44b2c0]
mov dword [ebp - 0x18], eax
mov ax, word [0x44b2c4]
mov word [ebp - 0x14], ax
mov eax, 0x41
mov dword [ebp - 0x230], eax
nop dword [eax]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x413d3a
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00423550
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x103
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
call fcn.00409200
mov ecx, eax
test ecx, ecx
je 0x413e12
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x224]
call fcn.00407d80
test al, al
jne 0x413c35
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413c13
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00407f30
lea edi, [ebx + 0x68]
mov byte [ebp - 4], 3
mov ebx, dword [edi + 4]
mov esi, dword [ebp - 0x224]
cmp ebx, dword [edi + 8]
je 0x413c5d
lea ecx, [esi - 0x10]
call fcn.00407e40
add eax, 0x10
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x413c6c
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
push ebx
call fcn.00415d40
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413c88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409200
mov ecx, eax
test ecx, ecx
je 0x413e12
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x224]
call fcn.00407d80
test al, al
jne 0x413ce1
lea eax, [ebp - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413cc2
sub eax, edx
lea ecx, [ebp - 0x224]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407f30
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x224]
mov ebx, dword [edi + 0x78]
cmp ebx, dword [edi + 0x7c]
je 0x413d0c
lea ecx, [esi - 0x10]
call fcn.00407e40
add eax, 0x10
mov dword [ebx], eax
add dword [edi + 0x78], 4
jmp 0x413d1c
lea eax, [ebp - 0x224]
push eax
push ebx
lea ecx, [edi + 0x74]
call fcn.00415d40
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413d38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, edi
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp ax, 0x5a
jbe 0x413b90
mov dword [ebx + 0x64], 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407e40
mov ecx, dword [ebp - 0x228]
add eax, 0x10
mov dword [ecx], eax
mov esi, dword [ebx + 0x68]
mov edi, dword [ebx + 0x74]
mov dword [ebp - 0x234], 1
cmp esi, dword [ebx + 0x6c]
je 0x413db8
mov eax, dword [esi]
test eax, eax
je 0x413e01
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
jl 0x413dfb
push eax
push ecx
call fcn.00422af7
mov ecx, dword [ebp - 0x228]
add esp, 8
test eax, eax
je 0x413e01
sub eax, dword [ecx]
sar eax, 1
jne 0x413e01
push dword [edi]
push dword [esi]
call fcn.00414c10
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413dd7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042150a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x228]
add esi, 4
add edi, 4
cmp esi, dword [ebx + 0x6c]
jne 0x413d83
jmp 0x413db8
push 0x80004005
call fcn.00408fe0
int3