Function at 0x10005e20
Capabilities:
Print debug messages

Disassembly:
push esi
sub esp, 0x48
test ecx, ecx
je 0x10005e3d
mov esi, ecx
mov dword [esp], ecx
call fcn.10003e20
cmp eax, 1
je 0x10005e42
mov dword [esi], 0xffffffff
add esp, 0x48
pop esi
ret
xorps xmm0, xmm0
movsd qword [esp + 0x3d], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x10]
mov dword [esp], esi
call fcn.10006770
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
nop word cs:[eax + eax]
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [esp + 0x4c]
mov esi, 3
test ebx, ebx
je 0x10005f0c
push 0x1007f014
call fcn.10002f70
add esp, 4
mov eax, dword [0x1007f2c8]
test eax, eax
je 0x10005eff
cmp eax, 1
jne 0x10005eca
mov eax, dword [0x1007f2cc]
cmp dword [eax + 4], ebx
jne 0x10005eff
jmp 0x10005f18
dec eax
xor edx, edx
mov ecx, dword [0x1007f2cc]
jmp 0x10005ee7
inc edi
mov edx, edi
cmp edx, eax
ja 0x10005eff
lea edi, [edx + eax]
shr edi, 1
cmp dword [ecx + edi*8 + 4], ebx
je 0x10005f15
jbe 0x10005ee0
cmp edi, edx
je 0x10005eff
dec edi
mov eax, edi
cmp edx, eax
jbe 0x10005ee7
push 0x1007f014
call fcn.100030d0
add esp, 4
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
ret
lea eax, [ecx + edi*8]
mov edi, dword [eax]
push 0x1007f014
call fcn.100030d0
add esp, 4
test edi, edi
je 0x10005f0c
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10005f0c
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10005f0c
mov esi, 0x16
test byte [edi + 0x24], 4
jne 0x10005f0c
call fcn.100043d0
test eax, eax
je 0x10005f5c
mov eax, dword [eax + 0xb4]
jmp 0x10005f5e
xor eax, eax
mov esi, 0x24
cmp eax, ebx
je 0x10005f0c
cmp dword [edi + 0x68], 0
mov eax, dword [edi + 0x14]
je 0x10005f78
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x10005f84
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10005f9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x18], 0
test esi, esi
je 0x10005fad
mov eax, dword [edi + 4]
mov dword [esi], eax
lea eax, [edi + 0x1c]
push eax
call fcn.10003260
add esp, 4
lea eax, [edi + 0x38]
push eax
call fcn.10003e20
add esp, 4
cmp eax, 1
je 0x10005fdf
mov dword [edi + 0x38], 0xffffffff
mov ecx, edi
call fcn.10004f50
xor esi, esi
jmp 0x10005f0c
xorps xmm0, xmm0
movsd qword [esp + 0x31], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0x14]
mov dword [esp], esi
call fcn.10006770
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
nop word cs:[eax + eax]
push ebx
push edi
push esi
sub esp, 0x3c
push 0x1007f014
call fcn.10002f70
add esp, 4
mov esi, 3
mov eax, dword [0x1007f2c8]
test eax, eax
je 0x10006154
mov ebx, dword [esp + 0x4c]
cmp eax, 1
jne 0x1000606d
mov eax, dword [0x1007f2cc]
cmp dword [eax + 4], ebx
je 0x100060a8
jmp 0x10006154
dec eax
xor edx, edx
mov ecx, dword [0x1007f2cc]
jmp 0x1000608b
inc edi
mov edx, edi
cmp edx, eax
ja 0x10006154
lea edi, [edx + eax]
shr edi, 1
cmp dword [ecx + edi*8 + 4], ebx
je 0x100060a5
jbe 0x10006080
cmp edi, edx
je 0x10006154
dec edi
mov eax, edi
jmp 0x10006083
lea eax, [ecx + edi*8]
mov edi, dword [eax]
test edi, edi
je 0x10006154
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10006154
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10006154
mov esi, 0x16
test byte [edi + 0x24], 4
jne 0x10006154
call fcn.100043d0
test eax, eax
je 0x100060eb
mov eax, dword [eax + 0xb4]
jmp 0x100060ed
xor eax, eax
mov esi, 0x24
cmp eax, ebx
je 0x10006154
cmp dword [edi + 0x68], 0
je 0x1000616a
mov esi, dword [esp + 0x50]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10006117
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x18], 0
test esi, esi
je 0x10006127
mov eax, dword [edi + 4]
mov dword [esi], eax
lea eax, [edi + 0x1c]
push eax
call fcn.10003260
add esp, 4
lea eax, [edi + 0x38]
push eax
call fcn.10003e20
add esp, 4
cmp eax, 1
je 0x1000618a
mov dword [edi + 0x38], 0xffffffff
mov ecx, edi
call fcn.10004f50
xor esi, esi
push 0x1007f014
call fcn.100030d0
add esp, 4
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
ret
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100060fc
cmp dword [edi + 0x68], 0
jne 0x100060fc
mov esi, 0x10
jmp 0x10006154
xorps xmm0, xmm0
movsd qword [esp + 0x31], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0x14]
mov dword [esp], esi
call fcn.10006770
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
nop dword [eax]
push ebx
push edi
push esi
sub esp, 0x4c
mov ebx, dword [esp + 0x5c]
mov dword [esp], 0x1007f014
call fcn.10002f70
mov esi, 3
test ebx, ebx
je 0x10006303
xor edi, edi
mov eax, dword [0x1007f2c8]
test eax, eax
je 0x10006248
cmp eax, 1
jne 0x1000620f
mov eax, dword [0x1007f2cc]
cmp dword [eax + 4], ebx
je 0x10006246
jmp 0x10006248
dec eax
xor edx, edx
mov ecx, dword [0x1007f2cc]
jmp 0x10006227
inc edi
mov edx, edi
cmp edx, eax
ja 0x1000623f
lea edi, [edx + eax]
shr edi, 1
cmp dword [ecx + edi*8 + 4], ebx
je 0x10006243
jbe 0x10006220
cmp edi, edx
je 0x1000623f
dec edi
mov eax, edi
cmp edx, eax
jbe 0x10006227
xor edi, edi
jmp 0x10006248
lea eax, [ecx + edi*8]
mov edi, dword [eax]
mov dword [esp], 0x1007f014
call fcn.100030d0
mov dword [esp], 0x1007f014
call fcn.10002f70
test edi, edi
je 0x10006303
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10006303
lea ecx, [esp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
sub esp, 8
test eax, eax
je 0x10006303
mov ecx, dword [edi + 0x24]
mov esi, 0x16
test cl, 4
jne 0x10006303
mov eax, dword [edi + 0x14]
mov dword [edi + 0x14], 0
or ecx, 4
mov dword [edi + 0x24], ecx
xor esi, esi
test eax, eax
je 0x10006303
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [edi + 0x68], 0
je 0x10006303
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100062d3
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [edi + 0x18], 0
lea eax, [edi + 0x1c]
mov dword [esp], eax
call fcn.10003260
lea eax, [edi + 0x38]
mov dword [esp], eax
call fcn.10003e20
cmp eax, 1
je 0x10006318
mov dword [edi + 0x38], 0xffffffff
mov ecx, edi
call fcn.10004f50
mov dword [esp], 0x1007f014
call fcn.100030d0
mov eax, esi
add esp, 0x4c
pop esi
pop edi
pop ebx
ret
xorps xmm0, xmm0
movsd qword [esp + 0x41], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x14]
mov dword [esp], esi
call fcn.10006770
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
nop word [eax + eax]
mov eax, dword [0x1007f2c4]
ret