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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194903
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 0x1010cff9
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x430]
call fcn.1010eb60
push str.kernel32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or esi, 0xffffffff
test eax, eax
je 0x1010d54f
push str.GetFinalPathNameByHandleW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1010d54f
push 0
push 0
push 1
lea ecx, [ebp - 0x428]
mov dword [0x101fc270], 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 0x1010d54f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x480], eax
test eax, eax
je 0x1010d54f
mov ecx, dword [ebp - 0x498]
xor ebx, ebx
mov eax, dword [0x101fc270]
cmp eax, dword [ecx]
jae 0x1010d533
test ebx, ebx
jne 0x1010d0c9
push ebx
push ebx
lea eax, [ebp - 0x490]
push eax
push 0x1010ce90
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x1010d54f
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1010d54f
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1010d54f
push 0xfa
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1010d120
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x1010d4f9
cmp byte [ebp - 0x47c], 0
je 0x1010d4f9
mov eax, dword [ebp - 0x488]
lea ecx, [ebp - 0x42c]
add eax, 8
mov dword [ebp - 0x42c], 0
push eax
call fcn.1010eb60
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.1010ead0
lea ecx, [ebp - 0x430]
call fcn.1010ead0
push dword [edi + 0x10]
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
call fcn.1017750f
add esp, 0xc
test eax, eax
je 0x1010d1a3
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 0x1010d4f9
jmp 0x1010d4dc
mov eax, dword [0x101fc270]
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 0x1010d4c3
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1010d4bc
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 0x1010d220
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x448]
call fcn.10001d60
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp byte [eax], 0
je 0x1010d2ea
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x478]
call fcn.10002700
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 0x1010d290
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.10001d60
mov ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x4d0]
mov byte [ebp - 4], 4
push eax
call fcn.1010f110
lea ecx, [ebp - 0x460]
call fcn.10001d00
lea ecx, [ebp - 0x478]
call fcn.10001d00
jmp 0x1010d475
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 0x1010d330
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10001d60
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 0x1010d376
sub edx, esi
lea ecx, [ebp - 0x460]
sar edx, 1
push edx
push eax
call fcn.10001d60
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4a0]
cmp edx, 8
jb 0x1010d3d6
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010d3cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d59d
push edx
push ecx
call fcn.1015cbd5
add esp, 8
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.10002700
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10002700
mov ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4d4]
mov byte [ebp - 4], 8
push eax
call fcn.1010f110
lea ecx, [ebp - 0x4b4]
call fcn.10001d00
lea ecx, [ebp - 0x4cc]
call fcn.10001d00
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x1010d475
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010d46b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d59d
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x434]
cmp edx, 8
jb 0x1010d4b9
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1010d4af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d59d
push edx
push ecx
call fcn.1015cbd5
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 0x1010d4f3
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 [0x101fc270]
cmp eax, dword [ecx]
jb 0x1010d0a5
test ebx, ebx
je 0x1010d533
push 0x3e8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1010d52c
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 0x1010d551
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 0x1010d57f
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.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
int3