Function at 0x4183e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435e4c
mov eax, dword fs:[0]
push eax
sub esp, 0xfdc
mov eax, dword [0x449928]
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 eax, dword [0x4498ec]
mov edi, dword [ebp + 8]
mov ecx, 0x4498ec
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xfe8], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x36
lea ecx, [edi + 0x103c]
mov ebx, eax
push 0
push ecx
mov dword [ebp - 0xfcc], ebx
mov dword [edi + 8], 0
call fcn.00424e90
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xfc8], ecx
mov edi, edi
mov eax, ebx
shr eax, cl
test al, 1
je 0x4187db
lea eax, [ecx + 0x41]
movzx eax, ax
movzx ebx, ax
push ebx
push 0x438ff0
push 0xffffffffffffffff
mov dword [ebp - 0xfbc], eax
lea eax, [ebp - 0x314]
push pe_nt_image_headers32
push eax
call fcn.00425c20
add esp, 0x14
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4184b7
cmp eax, 2
je 0x4184b7
cmp eax, 5
jne 0x4187cf
push ebx
push str.._C:
push 0xffffffffffffffff
lea eax, [ebp - 0x314]
push pe_nt_image_headers32
push eax
call fcn.00425c20
add esp, 0x14
lea eax, [ebp - 0x314]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc0], eax
cmp eax, 0xffffffff
je 0x4187bc
push eax
push 5
call fcn.00413120
push 0x20
call fcn.00424244
add esp, 0xc
mov ebx, eax
push 0
lea eax, [ebp - 0xfd0]
push eax
push 0x20
push ebx
push 0
xorps xmm0, xmm0
push 0
movq qword [ebx], xmm0
push 0x560000
push dword [ebp - 0xfc0]
movq qword [ebx + 8], xmm0
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0xfc4], ebx
movq qword [ebx + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x418751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4185c3
mov eax, dword [ebx]
dec eax
lea eax, [eax + eax*2]
lea ebx, [eax*8 + 0x20]
mov eax, dword [ebp - 0xfc4]
push eax
call fcn.0042420c
push ebx
call fcn.00424244
push ebx
push 0
push eax
mov dword [ebp - 0xfc4], eax
call fcn.00424e90
add esp, 0x14
lea eax, [ebp - 0xfd0]
push 0
push eax
push ebx
mov ebx, dword [ebp - 0xfc4]
push ebx
push 0
push 0
push 0x560000
push dword [ebp - 0xfc0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x418751
cmp dword [edi + 0x14c0], 0
je 0x4187a9
lea eax, [edi + 0x3c]
push eax
lea ecx, [ebp - 0xfb8]
call fcn.00413380
mov eax, dword [ebp - 0xfb8]
lea ecx, [ebp - 0xfb8]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xfd4]
push eax
mov byte [ebp - 4], 1
call fcn.00415c60
push eax
lea ecx, [ebp - 0xfb8]
mov byte [ebp - 4], 2
call fcn.00413430
mov edx, dword [ebp - 0xfd4]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xfb8]
call fcn.00415d90
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00424e90
mov eax, dword [ebp - 0xfb8]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x41867c
push dword [eax - 0xc]
lea ecx, [ebp - 0xfb8]
call fcn.00413a40
mov eax, dword [ebp - 0xfb8]
lea ecx, [ebp - 0x114]
sub ecx, eax
mov edx, eax
mov dword [ebp - 0xfbc], ecx
mov ebx, ecx
mov edi, edi
mov cl, byte [edx]
mov byte [ebx + edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x418690
cmp dword [eax - 0xc], 0
mov ebx, dword [ebp - 0xfc4]
je 0x418731
lea ecx, [ebp - 0xfe4]
call fcn.00411430
lea ecx, [ebp - 0xfe4]
mov byte [ebp - 4], 3
call fcn.00412850
test eax, eax
js 0x41871c
push 0xc98
lea eax, [ebp - 0xfac]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0xfb4], xmm0
call fcn.00424e90
add esp, 0xc
lea eax, [ebp - 0xfb4]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xfe4]
call fcn.00412700
lea ecx, [ebp - 0xfe4]
call fcn.00412930
cmp dword [ebp - 0xfa4], 0
jg 0x4187ed
lea ecx, [ebp - 0xfe4]
mov byte [ebp - 4], 1
call fcn.00411480
mov eax, dword [ebp - 0xfb8]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4187a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4187a9
cmp dword [edi], 1
mov eax, dword [ebx + 8]
jne 0x418787
cmp dword [ebx], 1
jne 0x41876b
cmp eax, dword [edi + 4]
je 0x41878c
cmp eax, dword [edi + 0x1b0c]
jmp 0x41878a
mov ecx, dword [edi + 4]
cmp eax, ecx
je 0x41878c
mov edx, dword [edi + 0x1b0c]
cmp eax, edx
je 0x41878c
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x41878c
cmp eax, edx
jmp 0x41878a
cmp eax, dword [edi + 4]
jne 0x4187a9
cmp dword [edi + 0x14c0], 0
jne 0x4187a9
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0xfbc]
mov word [edi + eax*2 + 0x103c], cx
inc dword [edi + 8]
test ebx, ebx
je 0x4187b6
push ebx
call fcn.0042420c
add esp, 4
mov eax, dword [ebp - 0xfc0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 5
call fcn.00413120
add esp, 8
mov ebx, dword [ebp - 0xfcc]
mov ecx, dword [ebp - 0xfc8]
inc ecx
mov dword [ebp - 0xfc8], ecx
cmp ecx, 0x1a
jl 0x418460
jmp 0x418834
mov ecx, dword [edi + 8]
mov ax, word [ebp - 0xf7c]
push dword [ebp - 0xfc0]
mov word [edi + ecx*2 + 0x103c], ax
inc dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 5
call fcn.00413120
add esp, 8
lea ecx, [ebp - 0xfe4]
mov byte [ebp - 4], 1
call fcn.00411480
lea ecx, [ebp - 0xfb8]
call fcn.00413410
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418855
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
or eax, 0xffffffff
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.00424839
mov esp, ebp
pop ebp
ret