Function at 0x403490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xc8], ebx
call fcn.00411e80
push ebx
push ebx
call fcn.00413d10
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00411460
lea eax, [ebp - 0x58]
push eax
call fcn.004033a0
add esp, 4
xor ecx, ecx
push 0x11
mov word [ebp - 0x20], cx
push 0x48f33c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
call fcn.004022c0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00411710
cmp dword [ebp - 0xc], 8
jb 0x40351a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046f1de
add esp, 4
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x403526
lea eax, [ebp - 0x3c]
push 0
push 1
push 0
push 1
push eax
call fcn.004107c0
push 0
push 1
push 1
push 1
call fcn.0040f4d0
push 0x1c
push str.toolscrash_servicemain.cc
call fcn.00410bd0
add esp, 0x2c
cmp eax, 1
jl 0x403597
push 0xffffffffffffffff
push 0x38
push str.toolscrash_servicemain.cc
lea ecx, [ebp - 0x1ac]
mov ebx, 1
call fcn.0040fd60
push 0x48f4f0
push esi
add eax, 8
push str.session_start._cmdline_is__
push eax
call fcn.00402850
add esp, 8
push eax
call fcn.0040ffe0
add esp, 8
push eax
call fcn.00402850
add esp, 8
test bl, 1
je 0x4035aa
lea ecx, [ebp - 0x1ac]
and ebx, 0xfffffffe
call fcn.00410380
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0xc0]
call fcn.004055f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [ecx + 2]
jmp 0x4035e0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4035e0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004022c0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0xc0]
call fcn.004089d0
test al, al
sete byte [ebp - 0xc1]
cmp dword [ebp - 0xc], 8
jb 0x403623
mov eax, dword [ebp - 0x20]
push eax
call fcn.0046f1de
add esp, 4
cmp byte [ebp - 0xc1], 0
je 0x403669
lea ecx, [ebp - 0xc0]
call fcn.00405b30
lea ecx, [ebp - 0x3c]
call fcn.00401b40
lea ecx, [ebp - 0x58]
call fcn.00401b40
lea ecx, [ebp - 0xfc]
call fcn.00412440
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret 0x10
push 0x1c
push str.toolscrash_servicemain.cc
call fcn.00410bd0
add esp, 8
cmp eax, 1
jl 0x4036a5
push 0xffffffffffffffff
push 0x3e
push str.toolscrash_servicemain.cc
lea ecx, [ebp - 0x1ac]
or ebx, 2
call fcn.0040fd60
add eax, 8
push str.ready_to_process_crash_requests
push eax
call fcn.00402850
add esp, 8
test bl, 2
je 0x4036b8
lea ecx, [ebp - 0x1ac]
and ebx, 0xfffffffd
call fcn.00410380
lea ecx, [ebp - 0xc0]
call fcn.004068b0
push 0x1c
push str.toolscrash_servicemain.cc
mov esi, eax
call fcn.00410bd0
add esp, 8
cmp eax, 1
jl 0x403709
push 0xffffffffffffffff
push 0x43
push str.toolscrash_servicemain.cc
lea ecx, [ebp - 0x1ac]
or ebx, 4
call fcn.0040fd60
push esi
add eax, 8
push str.session_end._return_code_is
push eax
call fcn.00402850
add esp, 8
mov ecx, eax
call fcn.00405bd0
test bl, 4
je 0x403719
lea ecx, [ebp - 0x1ac]
call fcn.00410380
lea ecx, [ebp - 0xc0]
call fcn.00405b30
lea ecx, [ebp - 0x3c]
call fcn.00401b40
lea ecx, [ebp - 0x58]
call fcn.00401b40
lea ecx, [ebp - 0xfc]
call fcn.00412440
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046fb84
mov esp, ebp
pop ebp
ret 0x10