Function at 0x1000c840
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004d1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._IsUDiskInUse__begin
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10057e28
push 0x10057e44
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.NtDuplicateObject
push 0x10057e44
mov ebp, eax
call esi
push eax
call edi
push 0x10057e64
push 0x10057e44
mov dword [esp + 0x3c], eax
call esi
push eax
call edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x84]
push eax
push 0
push 0x40
mov esi, 0x10000
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x1000c8f9
push str._IsUDiskInUse__failed_1
call ebx
xor eax, eax
jmp 0x1000cb18
push 0x10000
call fcn.10033bdd
add esp, 4
push 0
push 0x10000
push eax
push 0x10
mov dword [esp + 0x2c], eax
call ebp
cmp eax, 0xc0000004
jne 0x1000c940
mov ecx, dword [esp + 0x1c]
add esi, esi
push esi
push ecx
call fcn.10033ca7
add esp, 8
push 0
push esi
push eax
push 0x10
mov dword [esp + 0x2c], eax
call ebp
cmp eax, 0xc0000004
je 0x1000c91d
xor ebp, ebp
cmp eax, ebp
jge 0x1000c954
push str._IsUDiskInUse__failed_2
call ebx
xor eax, eax
jmp 0x1000cb18
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebp
cmp dword [ebx], ebp
jbe 0x1000cafc
add ebx, 4
jmp 0x1000c976
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ebp
mov eax, 8
lea ecx, [esp + 0x38]
dec eax
mov byte [ecx], 0
inc ecx
cmp eax, ebp
jne 0x1000c996
mov dword [esp + 0x30], ebp
cmp edx, dword [esp + 0x84]
jne 0x1000cae4
push ebp
push ebp
push ebp
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
movzx eax, word [esp + 0x5a]
push eax
push edi
call dword [esp + 0x50]
test eax, eax
jl 0x1000cae4
push 0x1000
call fcn.10033bdd
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0
push 0x1000
mov ebp, eax
push ebp
push 2
push ecx
call dword [esp + 0x40]
test eax, eax
jge 0x1000ca08
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000cae4
cmp esi, 0x12019f
jne 0x1000ca29
push ebp
call fcn.100332f0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000cae4
push 0x1000
call fcn.10033bdd
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x30]
push ecx
push 0x1000
mov edi, eax
push edi
push 1
push edx
call dword [esp + 0x40]
test eax, eax
jge 0x1000ca6e
push ebp
call fcn.100332f0
push edi
call fcn.100332f0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000cae4
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1000cac3
lea ecx, [esp + 0x50]
call fcn.1000cb40
sub esp, 0x1c
lea edx, [esp + 0x6c]
mov esi, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x9c], 0
call fcn.1000cb80
call fcn.1000c600
add esp, 0x1c
lea esi, [esp + 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.1000c1e0
push ebp
call fcn.100332f0
push edi
call fcn.100332f0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0
jne 0x1000cafc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
add ebx, 0x10
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
jb 0x1000c970
mov edx, dword [esp + 0x1c]
push edx
call fcn.100332f0
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10032551
add esp, 0x6c
ret