Function at 0x40c360
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x417014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
lea eax, [esp + 0xd8]
mov dword [esp + 0xe8], 0
push edi
xorps xmm0, xmm0
mov dword [esp + 0xd8], 0
push eax
movlpd qword [esp + 0xe8], xmm0
mov dword [esp + 0xe0], vtable.RSMonitor.0
mov dword [esp + 0xe4], 0
call fcn.0040fe3d
add esp, 4
mov dword [esp + 0xe4], vtable.RSMonitor.0
lea eax, [esp + 0xe4]
mov dword [esp + 0xe8], 0
push eax
call fcn.0040fe3d
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
xorps xmm0, xmm0
lea ecx, [esp + 0xa4]
push 0xffffffffffffffff
push eax
movaps xmmword [esp + 0xac], xmm0
movq qword [esp + 0xbc], xmm0
call fcn.0040e81e
push 0
xorps xmm0, xmm0
lea ecx, [esp + 0x114]
push 0xffffffffffffffff
push str.___ipc
movaps xmmword [esp + 0x11c], xmm0
movq qword [esp + 0x12c], xmm0
call fcn.0040e81e
push 0
xorps xmm0, xmm0
lea ecx, [esp + 0xf4]
push 0xffffffffffffffff
push str.___proc
movaps xmmword [esp + 0xfc], xmm0
movq qword [esp + 0x10c], xmm0
call fcn.0040e81e
push 0
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xa8]
call fcn.0040f167
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca3e
push 0
push 0xffffffffffffffff
push str.___broker
lea ecx, [esp + 0x3c]
call fcn.0040e81e
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xa8]
call fcn.0040f167
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], 0
test eax, eax
je 0x40c4f2
push eax
call fcn.004104a3
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x40c4f2
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test eax, eax
je 0x40c51e
push eax
call fcn.004104a3
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x40c51e
push 1
push eax
call fcn.00410471
add esp, 8
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp ecx, 0xffffffff
je 0x40c696
add ecx, 0xa
mov dword [esp + 0x58], esi
mov eax, edi
mov dword [esp + 0x5c], esi
sub eax, ecx
mov dword [esp + 0x60], esi
push eax
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x6c], esi
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call fcn.0040f661
push eax
lea ecx, [esp + 0x5c]
call fcn.0040e9c0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], esi
test eax, eax
je 0x40c591
push eax
call fcn.004104a3
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x40c591
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], esi
test eax, eax
je 0x40c5b9
push eax
call fcn.004104a3
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x40c5b9
push 1
push eax
call fcn.00410471
add esp, 8
lea ecx, [esp + 0x58]
call fcn.0040f30f
cmp dword [esp + 0x5c], esi
je 0x40c63e
push 0xc
call fcn.00410441
mov esi, eax
lea ecx, [esp + 0x5c]
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], vtable.BrokerPolicyCheckerImpl.0
call fcn.0040f30f
push eax
mov ecx, esi
call fcn.0040c130
test al, al
jne 0x40c63e
mov eax, dword [esi + 4]
mov dword [esi], vtable.BrokerPolicyCheckerImpl.0
mov dword [esp + 0x14], eax
test eax, eax
je 0x40c62d
mov ecx, eax
call fcn.004016e0
push 0x94
push dword [esp + 0x18]
call fcn.00410471
add esp, 8
mov dword [esi + 4], 0
push 0xc
push esi
mov byte [esi + 8], 0
call fcn.00410471
add esp, 8
xor esi, esi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x68], 0
test eax, eax
je 0x40c66a
push eax
call fcn.004104a3
mov eax, dword [esp + 0x6c]
add esp, 4
test eax, eax
je 0x40c66a
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], 0
test eax, eax
je 0x40c696
push eax
call fcn.004104a3
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x40c696
push 1
push eax
call fcn.00410471
add esp, 8
add edi, 7
lea eax, [esp + 0xf0]
push edi
push eax
lea ecx, [esp + 0xa8]
call fcn.0040f167
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40ca3e
sub eax, edi
mov dword [esp + 0xc0], 0
push eax
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0xcc], 0
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
call fcn.0040f661
push eax
lea ecx, [esp + 0xc4]
call fcn.0040e9c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 0
test eax, eax
je 0x40c74b
push eax
call fcn.004104a3
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
je 0x40c74b
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], 0
test eax, eax
je 0x40c777
push eax
call fcn.004104a3
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x40c777
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
add eax, 8
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
push eax
movq qword [esp + 0x4c], xmm0
call fcn.0040f661
push 0xffffffffffffffff
lea eax, [esp + 0xc4]
mov dword [esp + 0x8c], 0
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call fcn.0040ecf6
lea ecx, [esp + 0x88]
call fcn.0040f348
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov dword [esp + 0x74], 0
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.0040ecf6
lea ecx, [esp + 0x70]
call fcn.0040f348
push 0x54
lea eax, [esp + 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x70]
call fcn.0040f348
push esi
lea ecx, [esp + 0xdc]
push ecx
push eax
lea ecx, [esp + 0x94]
call fcn.0040f348
push eax
lea ecx, [esp + 0x140]
call fcn.0040ccb0
lea ecx, [esp + 0x130]
call fcn.00405850
lea ecx, [esp + 0x130]
call fcn.0040d530
mov eax, dword [esp + 0x80]
mov dword [esp + 0x80], 0
test eax, eax
je 0x40c8e6
push eax
call fcn.004104a3
mov eax, dword [esp + 0x84]
add esp, 4
test eax, eax
je 0x40c8e6
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], 0
test eax, eax
je 0x40c912
push eax
call fcn.004104a3
mov eax, dword [esp + 0x7c]
add esp, 4
test eax, eax
je 0x40c912
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x98]
mov dword [esp + 0x98], 0
test eax, eax
je 0x40c947
push eax
call fcn.004104a3
mov eax, dword [esp + 0x9c]
add esp, 4
test eax, eax
je 0x40c947
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], 0
test eax, eax
je 0x40c97c
push eax
call fcn.004104a3
mov eax, dword [esp + 0x94]
add esp, 4
test eax, eax
je 0x40c97c
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], 0
test eax, eax
je 0x40c9a8
push eax
call fcn.004104a3
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x40c9a8
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test eax, eax
je 0x40c9d4
push eax
call fcn.004104a3
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x40c9d4
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xd0], 0
test eax, eax
je 0x40ca09
push eax
call fcn.004104a3
mov eax, dword [esp + 0xd4]
add esp, 4
test eax, eax
je 0x40ca09
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc8], 0
test eax, eax
je 0x40ca3e
push eax
call fcn.004104a3
mov eax, dword [esp + 0xcc]
add esp, 4
test eax, eax
je 0x40ca3e
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x100]
mov dword [esp + 0x100], 0
test eax, eax
je 0x40ca73
push eax
call fcn.004104a3
mov eax, dword [esp + 0x104]
add esp, 4
test eax, eax
je 0x40ca73
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xf8], 0
test eax, eax
je 0x40caa8
push eax
call fcn.004104a3
mov eax, dword [esp + 0xfc]
add esp, 4
test eax, eax
je 0x40caa8
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x120]
mov dword [esp + 0x120], 0
test eax, eax
je 0x40cadd
push eax
call fcn.004104a3
mov eax, dword [esp + 0x124]
add esp, 4
test eax, eax
je 0x40cadd
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0x118]
mov dword [esp + 0x118], 0
test eax, eax
je 0x40cb12
push eax
call fcn.004104a3
mov eax, dword [esp + 0x11c]
add esp, 4
test eax, eax
je 0x40cb12
push 1
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], 0
test eax, eax
je 0x40cb47
push eax
call fcn.004104a3
mov eax, dword [esp + 0xb4]
add esp, 4
test eax, eax
je 0x40cb47
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xa8], 0
test eax, eax
je 0x40cb7c
push eax
call fcn.004104a3
mov eax, dword [esp + 0xac]
add esp, 4
test eax, eax
je 0x40cb7c
push 1
push eax
call fcn.00410471
add esp, 8
lea ecx, [esp + 0xe4]
call fcn.0040fcd5
lea ecx, [esp + 0xdc]
call fcn.0040fcd5
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00410430
mov esp, ebp
pop ebp
ret 0x10