Function at 0x1010ca10
Capabilities:
Create thread
Get process image filename
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101946d3
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x101f62b4]
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 dword [ebp - 0x49c], edx
mov edi, ecx
mov dword [ebp - 0x494], edi
cmp dword [edi + 0x14], 8
mov eax, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x498], ebx
mov dword [ebp - 0x430], 0
jb 0x1010ca69
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x430]
call fcn.1010e5d0
push str.kernel32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or esi, 0xffffffff
test eax, eax
je 0x1010cfbf
push str.GetFinalPathNameByHandleW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1010cfbf
push 0
push 0
push 1
lea ecx, [ebp - 0x428]
mov dword [0x101fc350], 0
push 0
mov dword [ebp - 0x488], ecx
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x490], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x484], eax
test eax, eax
je 0x1010cfbf
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x480], eax
test eax, eax
je 0x1010cfbf
mov ecx, dword [ebp - 0x498]
xor ebx, ebx
mov eax, dword [0x101fc350]
cmp eax, dword [ecx]
jae 0x1010cfa3
test ebx, ebx
jne 0x1010cb39
push ebx
push ebx
lea eax, [ebp - 0x490]
push eax
push 0x1010c900
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x1010cfbf
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1010cfbf
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1010cfbf
push 0xfa
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1010cb90
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x1010cf69
cmp byte [ebp - 0x47c], 0
je 0x1010cf69
mov eax, dword [ebp - 0x488]
lea ecx, [ebp - 0x42c]
add eax, 8
mov dword [ebp - 0x42c], 0
push eax
call fcn.1010e5d0
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.1010e540
lea ecx, [ebp - 0x430]
call fcn.1010e540
push dword [edi + 0x10]
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
call fcn.1017744f
add esp, 0xc
test eax, eax
je 0x1010cc13
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1010cf69
jmp 0x1010cf4c
mov eax, dword [0x101fc350]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0x498]
push dword [eax + ecx*4 - 0x10]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1010cf33
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1010cf2c
mov edx, dword [ebp - 0x488]
add edx, 8
mov dword [ebp - 0x438], 0
mov ecx, edx
mov dword [ebp - 0x434], 7
xor eax, eax
mov word [ebp - 0x448], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010cc90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x448]
call fcn.10001e80
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp byte [eax], 0
je 0x1010cd5a
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x478]
call fcn.10002820
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x460], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010cd00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.10001e80
mov ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x4d0]
mov byte [ebp - 4], 4
push eax
call fcn.1010eb80
lea ecx, [ebp - 0x460]
call fcn.10001e20
lea ecx, [ebp - 0x478]
call fcn.10001e20
jmp 0x1010cee5
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4a4], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x4a0], 7
mov word [ebp - 0x4b4], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010cda0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10001e80
mov byte [ebp - 4], 6
lea eax, [ebp - 0x4b4]
cmp dword [ebp - 0x4a0], 8
cmovae eax, dword [ebp - 0x4b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1010cde6
sub edx, esi
lea ecx, [ebp - 0x460]
sar edx, 1
push edx
push eax
call fcn.10001e80
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4a0]
cmp edx, 8
jb 0x1010ce46
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010ce3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d00d
push edx
push ecx
call fcn.1015cb05
add esp, 8
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.10002820
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10002820
mov ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4d4]
mov byte [ebp - 4], 8
push eax
call fcn.1010eb80
lea ecx, [ebp - 0x4b4]
call fcn.10001e20
lea ecx, [ebp - 0x4cc]
call fcn.10001e20
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x1010cee5
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010cedb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d00d
push edx
push ecx
call fcn.1015cb05
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x434]
cmp edx, 8
jb 0x1010cf29
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010cf1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d00d
push edx
push ecx
call fcn.1015cb05
add esp, 8
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1010cf63
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
or esi, 0xffffffff
mov edi, dword [ebp - 0x494]
mov ecx, dword [ebp - 0x498]
mov eax, dword [0x101fc350]
cmp eax, dword [ecx]
jb 0x1010cb15
test ebx, ebx
je 0x1010cfa3
push 0x3e8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1010cf9c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1010cfc1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1010cfef
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
mov al, bl
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.1015c7a5
mov esp, ebp
pop ebp
ret
call fcn.10168635
int3