Function at 0x100038b8
Capabilities:
Terminate process

Disassembly:
push 0x40
mov eax, 0x1001aab8
call fcn.1001a456
mov ebx, ecx
push 0
mov byte [ebp - 0x18], 1
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x10003cc5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x100038ff
push 4
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, eax
test ecx, ecx
je 0x10003d3a
mov dword [ebx + 0x10], ecx
test ecx, ecx
je 0x10003cc5
mov eax, dword [ebx]
xor esi, esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov esi, 0x10029e78
mov dword [ebx + 0x34], 1
push 0x15f90
xor edi, edi
mov byte [ebp - 0xd], al
push edi
push dword [ebx + 0x10]
mov dword [ebp - 0x28], edi
push dword [ebx + 0x34]
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
mov ecx, eax
test ecx, ecx
je 0x10003a91
cmp ecx, dword [ebx + 0x34]
jae 0x10003944
mov edi, ecx
jmp 0x10003959
mov edx, 0x80
cmp ecx, edx
jbe 0x1000395e
mov eax, dword [ebx + 0x34]
add eax, edx
cmp ecx, eax
jae 0x1000395e
lea edi, [ecx - 0x80]
mov dword [ebp - 0x28], edi
jmp 0x100039a0
cmp ecx, 0xffffffff
jne 0x1000396c
mov byte [ebp - 0x18], 0
jmp 0x10003ace
cmp ecx, 0x102
jne 0x10003ace
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x1c]
push 0x10029e78
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
movzx eax, byte [ebp - 0xd]
xor ecx, ecx
test esi, esi
mov esi, 0x10029e78
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x10003ace
xor eax, eax
push eax
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call fcn.1000c166
mov dword [ebp - 0x3c], eax
and dword [ebp - 4], 0
push esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov byte [ebp - 0x40], 1
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x18]
mov eax, dword [ebx + 0x10]
lea edi, [eax + edi*4]
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.1000c166
mov esi, dword [ebp - 0x2c]
lea ecx, [ebx + 0x18]
cmp esi, dword [ecx]
je 0x100039f4
mov eax, dword [edi]
cmp eax, dword [esi + 0x10]
jae 0x100039f6
mov esi, dword [ecx]
cmp esi, dword [ecx]
je 0x10003a61
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10003a30
mov eax, dword [ecx + 4]
mov edi, dword [eax]
cmp edi, eax
je 0x10003a2a
lea eax, [edi + 8]
cmp dword [eax], 0
je 0x10003a21
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000c166
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi]
mov edi, eax
cmp eax, dword [ecx + 4]
jne 0x10003a0d
push ecx
call fcn.10003d40
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebx + 0x18]
call fcn.1000c166
push dword [ebp - 0x28]
mov ecx, ebx
call fcn.1000c166
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x18], al
push 0x10029e78
mov byte [ebp - 4], 0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x40], 0
call fcn.100042c0
lea ecx, [ebp - 0x3c]
call fcn.1000c166
mov ecx, dword [ebp - 0x3c]
push 0xc
pop edx
call fcn.10001acf
jmp 0x10003ace
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10003ac7
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x10003ac7
cmp dword [ebx + 0x10], edi
je 0x10003abb
push dword [ebx + 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0x14]
pop ecx
mov ecx, dword [ebx + 0x38]
and dword [ebx + 0x14], edi
and dword [ebx + 0x38], edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x34], ecx
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
and dword [ebp - 0x14], 0
mov edi, 0x10029e90
mov dword [ebp - 4], 2
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [ebx + 0x20], 0
je 0x10003b04
lea ecx, [ebp - 0x14]
push ecx
push 0x1001dcf0
push dword [ebx + 0x20]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003b07
mov esi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x14]
test esi, esi
js 0x10003ca0
test ecx, ecx
je 0x10003ca0
push 0x10029e78
mov dword [ebp - 0x4c], 0x10029e78
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov byte [ebp - 0x48], 1
mov eax, dword [ebx + 0x18]
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
cmp esi, eax
je 0x10003c42
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10003bf6
mov eax, dword [eax + 4]
mov edi, dword [eax]
cmp edi, eax
je 0x10003bf6
mov esi, dword [ebp - 0x30]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0x1001dd00
push dword [edi + 8]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
js 0x10003bd5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10003bd8
and dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 6
mov ecx, dword [eax]
push edx
push 0x1001e298
push eax
call dword [ecx]
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
js 0x10003bc7
test eax, eax
je 0x10003bc7
cmp eax, dword [ebp - 0x14]
je 0x10003bc7
push dword [ebx + 0x28]
mov ecx, dword [eax]
push dword [ebx + 0x24]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
test eax, eax
je 0x10003bd5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 8
test eax, eax
je 0x10003be6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
mov edi, eax
cmp eax, dword [esi + 4]
jne 0x10003b65
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10003c1b
mov eax, dword [esi + 4]
jmp 0x10003c0e
cmp esi, dword [eax + 8]
jne 0x10003c14
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10003c04
mov esi, eax
mov dword [ebp - 0x28], esi
jmp 0x10003c34
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jmp 0x10003c2f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x28], esi
je 0x10003c25
cmp esi, dword [ebx + 0x18]
jne 0x10003b47
mov edi, 0x10029e90
push 0x10029e78
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push edi
mov byte [ebp - 0x48], 0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x28]
push 0x10029e90
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
push esi
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edi, 0x10029e90
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0
lea ecx, [ebx + 0x20]
call fcn.1000c166
and dword [ebx + 0x24], 0
and dword [ebx + 0x28], 0
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 9
test ecx, ecx
je 0x10003cb1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov esi, 0x10029e78
mov eax, dword [ebp - 0x18]
test al, al
jne 0x10003917
mov ecx, ebx
mov byte [ebx + 0xc], 0
call fcn.1000416f
push dword [ebx]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebx + 8], 0
je 0x10003ce7
push dword [ebx + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [0x10029d4c], 0
je 0x10003d1a
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x10003d14
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
call fcn.1001a427
ret
push 0
push 0
push 0x12
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
cmp dword [ebx + 0x2c], 0
je 0x10003d14
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.kernel32.dll_FreeLibraryAndExitThread]
call fcn.1000c166
int3