Function at 0x409bd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43311b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4440fc]
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 - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 1
cmp dword [0x446d10], 0
jne 0x409e26
mov eax, dword [0x43d5f4]
mov ebx, 0x41
mov dword [ebp - 0x18], eax
mov ax, word [0x43d5f8]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], bx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x409e0b
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00416db0
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.00406800
mov ecx, eax
test ecx, ecx
je 0x409ed2
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.00404590
test al, al
jne 0x409cf2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cd0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00404740
mov byte [ebp - 4], 3
mov edi, dword [0x446e74]
mov esi, dword [ebp - 0x224]
cmp edi, dword [0x446e78]
je 0x409d20
lea ecx, [esi - 0x10]
call fcn.00404650
add eax, 0x10
mov dword [edi], eax
add dword [0x446e74], 4
jmp 0x409d32
lea eax, [ebp - 0x224]
mov ecx, 0x446e70
push eax
push edi
call fcn.00410a10
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409d4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00406800
mov ecx, eax
test ecx, ecx
je 0x409ed2
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.00404590
test al, al
jne 0x409daf
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d90
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00404740
mov byte [ebp - 4], 5
mov edi, dword [0x446e80]
mov esi, dword [ebp - 0x224]
cmp edi, dword [0x446e84]
je 0x409ddd
lea ecx, [esi - 0x10]
call fcn.00404650
add eax, 0x10
mov dword [edi], eax
add dword [0x446e80], 4
jmp 0x409def
lea eax, [ebp - 0x224]
mov ecx, 0x446e7c
push eax
push edi
call fcn.00410a10
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409e0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp bx, 0x5a
jbe 0x409c47
mov ebx, dword [ebp - 0x228]
mov dword [0x446d10], 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404650
add eax, 0x10
mov dword [ebx], eax
mov esi, dword [0x446e70]
mov edx, dword [0x446e74]
mov edi, dword [0x446e7c]
mov dword [ebp - 0x22c], 1
cmp esi, edx
je 0x409e95
mov eax, dword [esi]
test eax, eax
je 0x409e7e
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
jl 0x409e7e
push eax
push ecx
call fcn.00416357
add esp, 8
test eax, eax
je 0x409e78
sub eax, dword [ebx]
sar eax, 1
je 0x409e8a
mov edx, dword [0x446e74]
add esi, 4
add edi, 4
cmp esi, edx
jne 0x409e56
jmp 0x409e95
push dword [edi]
mov ecx, ebx
push dword [esi]
call fcn.0040f010
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x409eb4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00414d6a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004065b0
int3