Function at 0x6c39554f
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x58]
push esi
push edi
mov dword [ebp - 4], 0xc0000bbd
test eax, 0x20000
je 0x6c3956ba
lea eax, [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp + 8], eax
cmp dword [eax], ecx
je 0x6c3956ae
mov esi, dword [ebx + 0x24]
cmp esi, ecx
jne 0x6c395595
mov dword [ebp - 4], 0xc0000bbc
jmp 0x6c3956a6
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ecx
test al, 4
jne 0x6c3955c8
test al, 2
jne 0x6c3955ab
cmp byte [esi + 0x1098], cl
je 0x6c3955c8
mov eax, dword [esi + 0x1088]
mov edx, dword [esi + 0x108c]
add eax, 0x14
push esi
adc edx, ecx
push edx
push eax
push ebx
call fcn.6c394961
mov dword [ebp - 4], eax
mov edi, 0x6c3a79d0
push edi
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
lea eax, [esi + 0x10a4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [eax], ecx
push edi
mov dword [ecx + 4], eax
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
cmp dword [esi + 0x109c], 0
jne 0x6c395663
push 1
push esi
lea eax, [esi + 0x78]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cdq
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ControlTraceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x6c395663
mov eax, dword [0x6c3a7048]
and al, 0xf
cmp al, 2
jb 0x6c395663
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + 0x878]
push 0
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 0x878]
push eax
lea eax, [esi + 0x78]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 0x78]
push eax
push 4
push dword [ebp + 8]
push dword [ebp - 4]
push 0x114
push 0x2e
push 0x757
call fcn.6c3774d9
add esp, 0x2c
lea eax, [esi + 0x10ac]
push eax
call sub.pcwum.dll_StmDeinitialize
push dword [esi + 0x10a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x1090]
mov esi, 0x6c372c94
push 0x75f
push esi
call fcn.6c3750c2
push dword [ebx + 0x24]
push 0x760
push esi
call fcn.6c3750c2
and dword [ebx + 0x24], 0
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
jmp 0x6c395952
mov dword [ebp - 4], 0xc0000bbc
jmp 0x6c395952
test eax, 0x10000
je 0x6c395952
mov edi, dword [ebx + 0x24]
mov eax, dword [edi + 0xe80]
test eax, eax
je 0x6c39578b
cmp eax, 0xffffffff
je 0x6c39578b
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [ebp - 8]
push ecx
push eax
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x6c39578b
cmp dword [ebp - 8], 0x103
jne 0x6c39578b
push dword [edi + 0xe88]
mov dword [edi + 0xe94], 5
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0x258
cmp dword [edi + 0xe94], 6
je 0x6c395755
cmp dword [ebp - 0xc], 0
je 0x6c395755
cmp dword [ebp - 8], 0x103
jne 0x6c395755
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push dword [edi + 0xe80]
call esi
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
jne 0x6c395721
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push dword [edi + 0xe80]
call esi
cmp eax, 0x102
jne 0x6c39578b
push 0
push dword [edi + 0xe80]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x6c39578b
push 0xffffffffffffffff
push dword [edi + 0xe80]
call esi
mov eax, dword [edi + 0xe88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x6c39579e
push eax
call esi
mov eax, dword [edi + 0xe84]
test eax, eax
je 0x6c3957ab
push eax
call esi
and dword [ebp - 0xc], 0
cmp dword [edi + 0xe98], 0
mov esi, 0x6c372c94
jbe 0x6c395906
lea eax, [edi + 0x10]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
add ebx, 0x50
jmp 0x6c3957de
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebx], eax
push ecx
mov dword [eax + 4], ebx
call fcn.6c393fe8
cmp dword [ebx], ebx
jne 0x6c3957cf
add ebx, 0xffffffdc
push ebx
call fcn.6c3993dc
mov ebx, dword [ebp - 4]
cmp dword [ebx], ebx
je 0x6c395833
mov eax, dword [ebx]
cmp ebx, eax
jne 0x6c3957fd
jmp 0x6c395833
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [eax + 4], ecx
push dword [ebx + 0x10]
push 0x7a3
push esi
call fcn.6c3750c2
push ebx
push 0x7a4
push esi
call fcn.6c3750c2
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 4], eax
jne 0x6c3957fa
mov ebx, dword [ebp - 4]
lea ecx, [ebx + 8]
cmp dword [ecx], ecx
je 0x6c3958dd
mov eax, dword [ecx]
cmp ecx, eax
jne 0x6c39584c
jmp 0x6c3958dd
mov eax, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [eax + 4], ecx
lea ecx, [ebx + 8]
cmp dword [ecx], ecx
je 0x6c3958a3
mov eax, dword [ecx]
cmp ecx, eax
jne 0x6c39586f
jmp 0x6c3958a3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ecx + 4], edx
push dword [eax + 0x10]
mov dword [ebp - 0x18], eax
push 0x7b9
push esi
mov dword [ebp - 0x10], ecx
call fcn.6c3750c2
push dword [ebp - 0x18]
push 0x7ba
push esi
call fcn.6c3750c2
lea eax, [ebx + 8]
cmp eax, dword [ebp - 0x10]
jne 0x6c39586c
push dword [ebx + 0x10]
push 0x7bd
push esi
call fcn.6c3750c2
push dword [ebx + 0x1c]
push 0x7be
push esi
call fcn.6c3750c2
push ebx
push 0x7bf
push esi
call fcn.6c3750c2
mov eax, dword [ebp - 4]
add eax, 8
cmp eax, dword [ebp - 0x14]
jne 0x6c395849
mov ebx, dword [ebp - 4]
push dword [ebx + 0x28]
push 0x7c2
push esi
call fcn.6c3750c2
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x68
mov dword [ebp - 4], ebx
cmp eax, dword [edi + 0xe98]
jb 0x6c3957c7
mov ebx, dword [ebp + 8]
push dword [edi + 0xe90]
push 0x7c4
push esi
call fcn.6c3750c2
push dword [edi + 0xe8c]
push 0x7c5
push esi
call fcn.6c3750c2
push dword [ebx + 0x60]
push 0x7c6
push esi
call fcn.6c3750c2
push dword [ebx + 0x24]
push 0x7c7
push esi
call fcn.6c3750c2
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x40], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8