Function at 0x4ef740
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x56cf68
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], edx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov byte [esi + 0x98], bl
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xc8], bl
mov byte [esi + 0xc9], bl
cmp edi, ebx
jne 0x4ef7f1
cmp dword [esp + 0x44], ebx
je 0x4ef879
push 0x34c
xor ebp, ebp
call fcn.00501e17
add esp, 4
cmp edi, ebx
je 0x4ef81b
cmp eax, ebx
je 0x4ef83a
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0x78]
push edx
push ecx
push edi
mov ecx, eax
call fcn.004effa0
jmp 0x4ef834
cmp eax, ebx
je 0x4ef83a
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0x78]
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
mov ecx, eax
call fcn.004efed0
cmp eax, ebx
je 0x4ef83a
mov ebp, eax
mov ecx, ebp
call fcn.004efea0
test al, al
je 0x4ef865
mov edi, dword [esi + 0xc]
cmp edi, ebp
je 0x4ef879
cmp edi, ebx
je 0x4ef860
mov ecx, edi
call fcn.004eff40
push edi
call fcn.00501b8f
add esp, 4
mov dword [esi + 0xc], ebp
jmp 0x4ef879
cmp ebp, ebx
je 0x4ef879
mov ecx, ebp
call fcn.004eff40
push ebp
call fcn.00501b8f
add esp, 4
cmp dword [esi + 0xc], ebx
jne 0x4ef944
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push ebx
push 1
push ebx
push ebx
call edi
push ebx
push 1
push ebx
push ebx
mov dword [esi + 0xb4], eax
call edi
mov dword [esi + 0xb8], eax
cmp eax, ebx
je 0x4ef8d9
cmp dword [esi + 0xb4], ebx
je 0x4ef8d9
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
push 0x4eeac0
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.dbghelp.dll
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x70], eax
cmp eax, ebx
je 0x4ef8fe
push str.MiniDumpWriteDump
push eax
call ebp
mov dword [esi + 0x74], eax
push str.rpcrt4.dll
call edi
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x4ef91a
push str.UuidCreate
push eax
call ebp
mov dword [esi + 0x80], eax
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x10]
push edx
mov ecx, edi
call fcn.004015d0
cmp dword [edi + 0x18], 8
jb 0x4ef937
mov edi, dword [edi + 4]
jmp 0x4ef93a
add edi, 4
mov ecx, esi
mov dword [esi + 0x64], edi
call fcn.004eee10
mov eax, dword [esi + 0xe0]
mov edx, dword [esi + 0xcc]
lea ecx, [esi + 0xcc]
lea edi, [esp + 0x14]
push edi
push eax
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004eefc0
cmp dword [esp + 0x10], 1
jne 0x4ef980
push 0x56cf48
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esp + 0x38], ebx
je 0x4efa21
push 0x56cf48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x56cf60]
cmp eax, ebx
jne 0x4ef9bc
push 0x18
call fcn.00501e17
add esp, 4
cmp eax, ebx
je 0x4ef9b5
mov ecx, eax
call fcn.004ef4f0
jmp 0x4ef9b7
xor eax, eax
mov dword [0x56cf60], eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], esi
call fcn.004ef6d0
mov bl, byte [esp + 0x38]
test bl, 1
je 0x4ef9e6
push 0x4ef620
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [esi + 0x88], eax
test bl, 2
je 0x4ef9fe
push 0x4ef250
call fcn.00501d5d
add esp, 4
mov dword [esi + 0x8c], eax
test bl, 4
je 0x4efa16
push 0x4ef3e0
call fcn.0050246c
add esp, 4
mov dword [esi + 0x90], eax
push 0x56cf48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x24