Function at 0x1002fc60
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f165b
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x1012d034]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
push edi
mov eax, dword [0x1012d034]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x54], ax
lea eax, [esp + 0x56]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1002ff4f
lea ebx, [esp + 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], ebx
jle 0x1002ff4f
lea edi, [esi + 0x14]
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [ebx], ax
jne 0x1002fd15
xor ecx, ecx
jmp 0x1002fd2f
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fd20
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esp + 0x38]
call fcn.10001e10
mov dword [esp + 0x860], 0
mov esi, dword [edi]
mov ebx, esi
mov edi, dword [ebx + 4]
cmp byte [edi + 0xd], 0
jne 0x1002fd85
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push dword [esp + 0x40]
cmovae eax, dword [esp + 0x34]
lea ecx, [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.100032d0
test eax, eax
jns 0x1002fd7b
mov edi, dword [edi + 8]
jmp 0x1002fd7f
mov ebx, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x1002fd52
mov edi, dword [esp + 0x18]
add edi, 0x14
cmp ebx, dword [edi]
je 0x1002fdbd
cmp dword [ebx + 0x24], 8
lea eax, [ebx + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x1002fd9e
mov eax, dword [eax]
push ecx
push eax
push dword [esp + 0x48]
lea ecx, [esp + 0x3c]
push 0
call fcn.100032d0
test eax, eax
js 0x1002fdbd
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
jmp 0x1002fdc7
mov eax, dword [edi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
cmp dword [eax], esi
jne 0x1002fedd
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push 0
cmovae eax, dword [esp + 0x34]
push 0x42000000
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002fedd
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 1
push 0
push 0xffffffffffffffff
call esi
mov edi, eax
test edi, edi
je 0x1002ff3b
push 0
push 1
push edi
push ebx
call esi
cmp eax, edi
jne 0x1002ff34
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
push str.driver__s_start_
push 1
push 0x9b
push 0x101046c8
push str.CFileMonitor::AddLocalDriverMonitor
call fcn.100e1770
push 0x20
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1002fe7c
xor eax, eax
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], ax
jmp 0x1002fe7e
xor esi, esi
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
lea eax, [esp + 0x30]
cmp ecx, eax
je 0x1002fe96
push 0xffffffffffffffff
push 0
push eax
call fcn.10001a70
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x30]
mov dword [esi], edi
push eax
lea edi, [ebx + 0x14]
mov ecx, edi
call fcn.10030e70
mov dword [eax], esi
lea eax, [esp + 0x48]
push eax
push 0
push esi
push 0x1002ffe0
push 0
push 0
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x2c], eax
lea ecx, [ebx + 8]
lea eax, [esp + 0x2c]
push eax
call fcn.1000c120
mov ebx, dword [esp + 0x14]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fee6
mov esi, dword [esp + 0x1c]
sub ecx, edx
sar ecx, 1
mov dword [esp + 0x860], 0xffffffff
lea eax, [ecx + 1]
add esi, eax
lea ebx, [ebx + eax*2]
cmp dword [esp + 0x44], 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
jb 0x1002ff28
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp esi, dword [esp + 0x24]
jl 0x1002fcf5
jmp 0x1002ff4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 8
jb 0x1002ff4f
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret