Function at 0x10057680
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157b8a
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x101ac034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x840], ecx
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x810]
push edx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x864], eax
cmp dword [ebp - 0x864], 0
jne 0x100576f6
jmp 0x10057a96
lea eax, [ebp - 0x810]
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], 0
mov ecx, 1
test ecx, ecx
je 0x10057a96
mov edx, dword [ebp - 0x848]
cmp edx, dword [ebp - 0x864]
jl 0x1005772c
jmp 0x10057a96
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 0x854]
push ecx
lea ecx, [ebp - 0x82c]
call fcn.10003d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x82c]
call fcn.10002bf0
push eax
push str.driverName___ls
push 0
push 0x8b
push 0x10172bc8
push 0x10172c28
call fcn.10146290
add esp, 0x18
lea edx, [ebp - 0x87c]
push edx
mov ecx, dword [ebp - 0x840]
add ecx, 0x14
call fcn.100054d0
push eax
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x878]
push ecx
mov ecx, dword [ebp - 0x840]
add ecx, 0x14
call fcn.10012d60
mov ecx, eax
call fcn.10004d40
movzx edx, al
test edx, edx
je 0x100579f9
push 0
push 0x42000000
push 3
push 0
push 7
push SysReAllocString
lea ecx, [ebp - 0x82c]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0xffffffff
je 0x100579f9
push 0
push 1
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x1005784d
push str.CreateIoCompletionPort1_Error
push 0
push 0x97
push 0x10172c70
push 0x10172cd0
call fcn.10146290
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.10003e00
jmp 0x10057a96
push 0
push 1
mov eax, dword [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x870], eax
mov edx, dword [ebp - 0x870]
cmp edx, dword [ebp - 0x838]
je 0x100578bb
push str.CreateIoCompletionPort2_Error
push 0
push 0x9f
push 0x10172d78
push 0x10172dd8
call fcn.10146290
add esp, 0x14
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.10003e00
jmp 0x10057a96
lea ecx, [ebp - 0x82c]
call fcn.10002bf0
push eax
push str.driver__s_start_
push 1
push 0xa3
push 0x10172e20
push 0x10172e80
call fcn.10146290
add esp, 0x18
push 0x20
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x858], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x858], 0
je 0x10057916
mov ecx, dword [ebp - 0x858]
call fcn.10057ab0
mov dword [ebp - 0x85c], eax
jmp 0x10057920
mov dword [ebp - 0x85c], 0
mov ecx, dword [ebp - 0x85c]
mov dword [ebp - 0x874], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x874]
mov dword [ebp - 0x83c], edx
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 0x844]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x82c]
push edx
mov ecx, dword [ebp - 0x83c]
add ecx, 8
call fcn.100035f0
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 0x838]
mov dword [eax], ecx
lea edx, [ebp - 0x82c]
push edx
mov ecx, dword [ebp - 0x840]
add ecx, 0x14
call fcn.100589d0
mov ecx, dword [ebp - 0x83c]
mov dword [eax], ecx
lea ecx, [ebp - 0x82c]
call fcn.10002bf0
push eax
push str.CreateDriver_Mon___s
push 1
push 0xaa
push 0x10172f10
push str.CFileMonitor::AddLocalDriverMonitor
call fcn.10146290
add esp, 0x18
mov dword [ebp - 0x814], 0
lea edx, [ebp - 0x814]
push edx
push 0
mov eax, dword [ebp - 0x83c]
push eax
push 0x10057b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x830], eax
lea ecx, [ebp - 0x830]
push ecx
mov ecx, dword [ebp - 0x840]
add ecx, 8
call fcn.10012eb0
mov edx, dword [ebp - 0x854]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x834]
add eax, 2
mov dword [ebp - 0x868], eax
mov ecx, dword [ebp - 0x834]
mov dx, word [ecx]
mov word [ebp - 0x84e], dx
add dword [ebp - 0x834], 2
cmp word [ebp - 0x84e], 0
jne 0x10057a14
mov eax, dword [ebp - 0x834]
sub eax, dword [ebp - 0x868]
sar eax, 1
mov dword [ebp - 0x86c], eax
mov ecx, dword [ebp - 0x86c]
add ecx, 1
mov dword [ebp - 0x860], ecx
mov edx, dword [ebp - 0x860]
mov eax, dword [ebp - 0x84c]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x84c], ecx
mov edx, dword [ebp - 0x848]
add edx, dword [ebp - 0x860]
mov dword [ebp - 0x848], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.10003e00
jmp 0x1005770c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret