Function at 0x53943c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x2c]
push ebx
mov dword [ebp - 0x20], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x28]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], edx
inc eax
lock xadd dword [0x5f2160], eax
inc eax
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
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
xor eax, eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov esi, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], eax
mov byte [ebx + 0x8c], al
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov word [ebx + 0xbc], ax
mov byte [ebx + 0xbe], al
mov dword [ebp - 0x18], esi
test ecx, ecx
jne 0x53954f
test edx, edx
je 0x539525
push 0x348
call fcn.0056607a
pop ecx
test eax, eax
je 0x53954d
push dword [ebp - 0x20]
mov ecx, eax
push dword [ebx + 0x6c]
push dword [ebp - 0x28]
call fcn.00539df0
jmp 0x539549
cmp dword [ebp - 0x24], eax
je 0x539579
push 0x348
call fcn.0056607a
pop ecx
test eax, eax
je 0x53954d
push dword [ebp - 0x20]
mov ecx, eax
push dword [ebx + 0x6c]
push dword [ebp - 0x24]
call fcn.00539d8d
mov ecx, eax
jmp 0x53954f
xor ecx, ecx
lea eax, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00539c59
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x539577
mov ecx, esi
call fcn.00539fa3
test al, al
je 0x539577
push esi
lea ecx, [ebx + 0xc]
xor esi, esi
call fcn.00539c59
xor eax, eax
cmp dword [ebx + 0xc], eax
jne 0x53962d
lea eax, [ebx + 0x90]
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 + 0xa8], eax
xor eax, eax
push eax
push 1
push eax
push eax
call edi
mov dword [ebx + 0xac], eax
test eax, eax
je 0x5395de
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
je 0x5395de
lea eax, [ebp - 0x30]
push eax
push ecx
push ebx
push 0x5390c8
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x88], eax
push 0x5b2f68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x64], eax
test eax, eax
je 0x539601
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 0x53961e
push str.UuidCreate
push eax
call edi
mov dword [ebx + 0x74], eax
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00539c8b
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebx + 0xc0]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [ecx]
movlpd qword [ebp - 0x14], xmm0
call fcn.00538ca1
cmp dword [ebp - 0x1c], 1
jne 0x53965a
push 0x5f2148
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test edi, edi
je 0x539704
push 0x5f2148
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5f2140]
test eax, eax
jne 0x539695
push 0xc
call fcn.0056607a
pop ecx
test eax, eax
je 0x53968e
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x539690
xor eax, eax
mov dword [0x5f2140], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
cmp ecx, dword [eax + 8]
je 0x5396a8
mov dword [ecx], ebx
add dword [eax + 4], 4
jmp 0x5396b4
lea edx, [ebp - 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.00538ce4
mov eax, dword [ebp + 0x18]
test al, 1
je 0x5396cc
push 0x539121
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x18]
test al, 2
je 0x5396e4
push 0x5391c9
call fcn.0056cf17
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x18]
pop ecx
test al, 4
je 0x5396f9
push 0x53933e
call fcn.0056a1e0
pop ecx
mov dword [ebx + 0x84], eax
push 0x5f2148
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x53971c
mov ecx, esi
call fcn.00539ebf
push 0x348
push esi
call fcn.005660aa
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00565e42
leave
ret 0x28