Function at 0x413020
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598d07
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x62cf50]
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 eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
movlpd qword [ebp - 0x48], xmm0
call fcn.00413610
mov dword [ebp - 0x48], eax
test eax, eax
je 0x413089
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x631b08], eax
test eax, eax
je 0x41309e
push dword [ebp - 0x48]
call fcn.004138d0
jmp 0x413097
call fcn.00401a00
push eax
mov dword [ebp - 0x44], eax
call fcn.004188f0
add esp, 4
test al, al
jne 0x4130a8
mov eax, 6
jmp 0x41341e
call fcn.0040b2e0
xor ecx, ecx
mov dword [ebp - 0x54], 0x5c3e9c
cmp byte [0x5c3e9c], cl
je 0x4130ca
nop
inc ecx
cmp byte [ecx + 0x5c3e9c], 0
jne 0x4130c0
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0040d010
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push 0x5c2ba0
push eax
call fcn.00411a80
add esp, 8
test al, al
jne 0x4130fe
cmp dword [ebp - 0x30], 0
jne 0x413116
push 1
push str.bEnableHeapMitigations
call fcn.00411e50
add esp, 8
test eax, eax
je 0x413116
call fcn.00413f10
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c7f0
push 1
push str.bEnableProcessIntegrityMitigations
call fcn.00411e50
add esp, 8
test eax, eax
je 0x41313d
call fcn.00414750
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov byte [edi], 0
call fcn.0040b2e0
xor ecx, ecx
mov dword [ebp - 0x5c], 0x5c3e9c
mov ebx, eax
cmp byte [0x5c3e9c], cl
je 0x41316a
nop
inc ecx
cmp byte [ecx + 0x5c3e9c], 0
jne 0x413160
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
push eax
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040d010
push 0x14
mov dword [ebp - 4], 1
call fcn.00406b5e
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
test esi, esi
je 0x4131b6
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x4131b8
xor esi, esi
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
mov dword [esi + 4], eax
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0
jne 0x4131f2
push 0
push 0
mov byte [0x631b5e], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push dword [ebp - 0x4c]
push dword [ebp + 8]
push esi
call fcn.00416520
add esp, 0xc
mov ebx, eax
jmp 0x413264
lea eax, [ebp - 0x28]
push 0x5c2ba0
push eax
call fcn.00411a80
add esp, 8
test al, al
je 0x41322b
push 0
push 0
mov byte [0x631b5e], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push dword [ebp - 0x4c]
push dword [ebp + 8]
push esi
call fcn.00484d70
add esp, 0xc
mov ebx, eax
jmp 0x413264
lea eax, [ebp - 0x28]
push 0x5c3f34
push eax
call fcn.00411a80
add esp, 8
test al, al
jne 0x413255
lea eax, [ebp - 0x28]
push 0x5c2bb4
push eax
call fcn.00411a80
add esp, 8
test al, al
je 0x413264
mov eax, dword [ebp - 0x44]
mov ebx, 1
mov byte [edi], bl
mov dword [0x631b60], eax
push 0x14
push esi
call fcn.0040a1a2
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040c7f0
cmp dword [ebp - 0x48], 0
je 0x41341c
or edx, 0xffffffff
mov esi, 0x631b0c
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov ecx, 0x631b10
xor eax, eax
lock cmpxchg dword [ecx], edx
xor eax, eax
mov ecx, 0x634b34
xchg dword [ecx], eax
push dword [0x631b08]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x41341c
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
cmp eax, 1
jne 0x413351
mov esi, dword [0x631b44]
xor eax, eax
test esi, esi
je 0x413305
cmp dword [esi], eax
je 0x413305
test eax, eax
jne 0x41333f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4132f9
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
add esi, 0x24
cmp dword [esi], 0
jne 0x4132e7
test eax, eax
jne 0x41333f
mov esi, dword [0x62b128]
xor eax, eax
mov edx, dword [0x62b12c]
cmp esi, edx
jae 0x41333f
test eax, eax
jne 0x41333f
mov ecx, dword [esi]
test ecx, ecx
je 0x413338
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x413338
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edx, dword [0x62b12c]
add esi, 4
cmp esi, edx
jb 0x413317
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call fcn.0044e880
mov ecx, eax
call fcn.0047cfb0
mov esi, dword [0x631bb4]
test esi, esi
jne 0x4133a0
push 0x44
call fcn.00406b5e
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x41338d
push 0x44
push 0
push esi
call fcn.0056aed0
add esp, 0xc
mov ecx, esi
call fcn.004137d0
mov esi, eax
jmp 0x41338f
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x631bb4], esi
test esi, esi
je 0x4133b2
mov ecx, esi
call fcn.0047d080
push 0x44
push esi
call fcn.0040a1a2
add esp, 8
mov edi, dword [0x634a80]
mov dword [0x631bb4], 0
mov dword [ebp - 0x48], 0
test edi, edi
je 0x4133df
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
cmp byte [0x631b5d], 0
mov dword [0x634a80], 0
je 0x4133fc
mov ecx, 0x631b18
call fcn.0047e1b0
cmp byte [0x631b5e], 0
je 0x41340b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [0x631b5e], 0
mov dword [0x631b08], 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 int.004016cd
mov esp, ebp
pop ebp
ret