Function at 0x1003af8f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1030d9b8
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov dword [ebx], edx
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov esi, ecx
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 8], edx
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], ecx
mov byte [ebx + 0x90], cl
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], ecx
mov dword [ebx + 0xbc], ecx
mov word [ebx + 0xc0], cx
mov dword [ebp + 0x10], esi
cmp dword [ebp + 0x34], ecx
je 0x1003b034
push dword [ebp + 0x34]
jmp 0x1003b089
cmp dword [ebp + 0x28], ecx
je 0x1003b060
push 0x354
call fcn.1002fed0
pop ecx
test eax, eax
je 0x1003b086
push dword [ebp + 0x38]
mov ecx, eax
push dword [ebp + 0x30]
push dword [ebp + 0xc]
push dword [ebx + 0x70]
push dword [ebp + 0x28]
call fcn.1003b95c
jmp 0x1003b088
cmp dword [ebp + 0x2c], ecx
je 0x1003b0b0
push 0x354
call fcn.1002fed0
pop ecx
test eax, eax
je 0x1003b086
push dword [ebp + 0x38]
mov ecx, eax
push dword [ebx + 0x70]
push dword [ebp + 0x2c]
call fcn.1003b8f0
jmp 0x1003b088
xor eax, eax
push eax
lea ecx, [ebp + 0x10]
call fcn.1003b88f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003b0ae
mov ecx, esi
call fcn.1003bb63
test al, al
je 0x1003b0ae
push esi
lea ecx, [ebx + 0x10]
xor esi, esi
call fcn.1003b88f
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
jne 0x1003b164
lea eax, [ebx + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xac], eax
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xb0], eax
test eax, eax
je 0x1003b115
xor ecx, ecx
cmp dword [ebx + 0xac], ecx
je 0x1003b115
lea eax, [ebp + 0x18]
push eax
push ecx
push ebx
push 0x1003ac05
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x8c], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x68], eax
test eax, eax
je 0x1003b138
push str.MiniDumpWriteDump
push eax
call edi
mov dword [ebx + 0x6c], eax
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x74], eax
test eax, eax
je 0x1003b155
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x78], eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.1003b8bb
mov edi, dword [ebp + 0x20]
xor ecx, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + 0xc4]
xorps xmm0, xmm0
push eax
push dword [ecx]
movlpd qword [ebp - 0x14], xmm0
call fcn.1003aafa
cmp dword [ebp - 4], 1
jne 0x1003b191
push 0x1030d9a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test edi, edi
je 0x1003b22d
push 0x1030d9a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1030d998]
test eax, eax
jne 0x1003b1cc
push 0xc
call fcn.1002fed0
pop ecx
test eax, eax
je 0x1003b1c5
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x1003b1c7
xor eax, eax
mov dword [0x1030d998], eax
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push ecx
mov ecx, eax
call fcn.1003b83a
mov eax, dword [ebp + 0x20]
test al, 1
je 0x1003b1f5
push 0x1003ac90
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x20]
test al, 2
je 0x1003b20d
push 0x1003ad25
call fcn.1004145c
mov dword [ebx + 0x84], eax
mov eax, dword [ebp + 0x20]
pop ecx
test al, 4
je 0x1003b222
push 0x1003ae89
call fcn.1004115f
pop ecx
mov dword [ebx + 0x88], eax
push 0x1030d9a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1003b23f
mov ecx, esi
call fcn.1003ba7e
push esi
call fcn.1002fa60
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34