Function at 0x5d78f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
movlpd qword [ebp - 0x30], xmm0
call fcn.0040db20
mov dword [ebp - 0x30], eax
test eax, eax
je 0x5d7956
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6ceda0], eax
test eax, eax
je 0x5d796b
push dword [ebp - 0x30]
call fcn.0040e040
jmp 0x5d7964
call fcn.00401460
push eax
mov dword [ebp - 0x2c], eax
call fcn.00411950
add esp, 4
test al, al
jne 0x5d7975
mov eax, 6
jmp 0x5d7bfe
call fcn.00406c60
sub esp, 8
mov ecx, 0x65ca6f
mov edx, esp
mov ebx, eax
lea eax, [ecx + 1]
mov dword [edx], 0x65ca6f
mov dword [ebp - 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5d7992
sub ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov dword [edx + 4], ecx
mov ecx, ebx
push eax
call fcn.00408470
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x65b8e2
push eax
call fcn.005d6e00
add esp, 8
test al, al
jne 0x5d79cc
cmp dword [ebp - 0x18], 0
jne 0x5d79e4
push 1
push str.bEnableHeapMitigations
call fcn.005d7000
add esp, 8
test eax, eax
je 0x5d79e4
call fcn.0040ea90
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp eax, 0x10
jb 0x5d7a00
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.005f4370
push 1
push str.bEnableProcessIntegrityMitigations
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.005d7000
add esp, 8
test eax, eax
je 0x5d7a31
call fcn.0040f2c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.005d89b0
add esp, 0x14
mov ebx, eax
cmp dword [ebp - 0x30], 0
je 0x5d7bfc
or edx, 0xffffffff
mov esi, 0x6ceda4
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov ecx, 0x6ceda8
xor eax, eax
lock cmpxchg dword [ecx], edx
xor eax, eax
mov ecx, 0x6d1f60
xchg dword [ecx], eax
push dword [0x6ceda0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x5d7bfc
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
cmp eax, 1
jne 0x5d7b31
mov esi, dword [0x6ceddc]
xor eax, eax
mov dword [ebp - 4], 2
test esi, esi
je 0x5d7ade
cmp dword [esi], eax
je 0x5d7ade
nop dword [eax + eax]
test eax, eax
jne 0x5d7b18
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5d7ad2
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
add esi, 0x24
cmp dword [esi], 0
jne 0x5d7ac0
test eax, eax
jne 0x5d7b18
mov esi, dword [0x6c8094]
xor eax, eax
mov edx, dword [0x6c8098]
cmp esi, edx
jae 0x5d7b18
test eax, eax
jne 0x5d7b18
mov ecx, dword [esi]
test ecx, ecx
je 0x5d7b11
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x5d7b11
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edx, dword [0x6c8098]
add esi, 4
cmp esi, edx
jb 0x5d7af0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call fcn.005e13d0
mov ecx, eax
call fcn.005e8300
mov esi, dword [0x6cee74]
test esi, esi
jne 0x5d7b80
push 0x44
call fcn.005d0220
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x5d7b6d
push 0x44
push 0
push esi
call fcn.0061e8c0
add esp, 0xc
mov ecx, esi
call fcn.0040ddc0
mov esi, eax
jmp 0x5d7b6f
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x6cee74], esi
test esi, esi
je 0x5d7b92
mov ecx, esi
call fcn.0049d1d0
push 0x44
push esi
call fcn.005d319e
add esp, 8
mov edi, dword [0x6d1ebc]
mov dword [0x6cee74], 0
mov dword [ebp - 0x30], 0
test edi, edi
je 0x5d7bbf
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x64689c]
mov ecx, edi
call esi
cmp byte [0x6cedad], 0
mov dword [0x6d1ebc], 0
je 0x5d7bdc
mov ecx, 0x6cedb0
call fcn.005e8440
cmp byte [0x6cedae], 0
je 0x5d7beb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [0x6cedae], 0
mov dword [0x6ceda0], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret