Function at 0x47f300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov eax, 1
push edi
mov ecx, 0x4e5148
lock xadd dword [ecx], eax
inc eax
mov dword [ebp - 4], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov byte [ebx + 0x8c], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov word [ebx + 0xbc], 0
mov byte [ebx + 0xbe], 0
test eax, eax
jne 0x47f434
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x47f40a
push 0x348
call fcn.00492cd0
add esp, 4
test eax, eax
je 0x47f46d
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.0047fc50
jmp 0x47f430
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x47f46d
push 0x348
call fcn.00492cd0
add esp, 4
test eax, eax
je 0x47f46d
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebx + 0x6c]
push edi
call fcn.0047fbc0
test eax, eax
je 0x47f46d
mov esi, eax
test esi, esi
je 0x47f46d
mov ecx, esi
call fcn.0047fe30
test al, al
je 0x47f46d
mov edi, dword [ebx + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp + 0x2c], eax
cmp eax, edi
je 0x47f46d
test edi, edi
je 0x47f46a
mov ecx, edi
call fcn.0047fd10
push edi
call fcn.00492cb0
mov eax, dword [ebp + 0x2c]
add esp, 4
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x47f546
lea eax, [ebx + 0x90]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 0
push 0
call edi
push 0
push 1
push 0
push 0
mov dword [ebx + 0xa8], eax
call edi
mov dword [ebx + 0xac], eax
test eax, eax
je 0x47f4d8
cmp dword [ebx + 0xa8], 0
je 0x47f4d8
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
push 0x47eef0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x88], eax
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x64], eax
test eax, eax
je 0x47f4fb
push str.MiniDumpWriteDump
push eax
call edi
mov dword [ebx + 0x68], eax
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x47f518
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x10]
cmp edi, eax
je 0x47f52e
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004058f5
cmp dword [edi + 0x14], 8
jb 0x47f536
mov edi, dword [edi]
mov ecx, ebx
mov dword [ebx + 0x58], edi
call fcn.0047f6d0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
lea ecx, [ebx + 0xc0]
xorps xmm0, xmm0
push eax
push dword [ecx]
movlpd qword [ebp - 0x14], xmm0
call fcn.0047ea20
cmp dword [ebp - 4], 1
jne 0x47f573
push 0x4e512c
call edi
cmp dword [ebp + 0x18], 0
je 0x47f61e
push 0x4e512c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e5124]
test eax, eax
jne 0x47f5bc
push 0xc
call fcn.00492cd0
add esp, 4
test eax, eax
je 0x47f5b5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x47f5b7
xor eax, eax
mov dword [0x4e5124], eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push ecx
mov ecx, eax
call fcn.0047b550
mov eax, dword [ebp + 0x18]
test al, 1
je 0x47f5e2
push 0x47efb0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x18]
test al, 2
je 0x47f5fc
push 0x47f080
call fcn.00496ece
mov dword [ebx + 0x80], eax
add esp, 4
mov eax, dword [ebp + 0x18]
test al, 4
je 0x47f613
push 0x47f1f0
call fcn.00496cf6
add esp, 4
mov dword [ebx + 0x84], eax
push 0x4e512c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x47f632
mov ecx, esi
call fcn.0047fd10
push esi
call fcn.00492cb0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28