Function at 0x403f10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xc8], ebx
call fcn.00413940
push ebx
push ebx
call fcn.00415de0
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.00412300
lea eax, [ebp - 0x3c]
push eax
call fcn.00402ba0
add esp, 4
xor ecx, ecx
push 0x11
mov word [ebp - 0xc0], cx
push str.operation_log.txt
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], ebx
call fcn.00402470
lea edx, [ebp - 0xc4]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412c70
cmp dword [ebp - 0xac], 8
jb 0x403faf
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.0042305c
add esp, 4
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x403fbb
lea eax, [ebp - 0x1c]
push 0
push 1
push 0
push 1
push eax
call fcn.004111a0
push 0
push 1
push 1
push 1
call fcn.0040f190
push 0x1e
push str.._toolscrash_servicemain.cc
call fcn.00411590
add esp, 0x2c
cmp eax, 1
jl 0x40402c
push 0xffffffffffffffff
push 0x38
push str.._toolscrash_servicemain.cc
lea ecx, [ebp - 0x198]
mov ebx, 1
call fcn.00410e90
push 0x4924f8
push esi
add eax, 4
push str.session_start._cmdline_is__
push eax
call fcn.00403c40
add esp, 8
push eax
call fcn.004105b0
add esp, 8
push eax
call fcn.00403c40
add esp, 8
test bl, 1
je 0x40403f
lea ecx, [ebp - 0x198]
and ebx, 0xfffffffe
call fcn.004108d0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0xa4]
call fcn.004055c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0xc0], cx
mov ecx, eax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404076
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.00402470
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xa4]
call fcn.00408d50
test al, al
sete byte [ebp - 0xa5]
cmp dword [ebp - 0xac], 8
jb 0x4040c5
mov eax, dword [ebp - 0xc0]
push eax
call fcn.0042305c
add esp, 4
cmp byte [ebp - 0xa5], 0
je 0x40410b
lea ecx, [ebp - 0xa4]
call fcn.004059c0
lea ecx, [ebp - 0x20]
call fcn.004446d0
lea ecx, [ebp - 0x3c]
call fcn.004446d0
lea ecx, [ebp - 0x104]
call fcn.00413d90
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret 0x10
push 0x1e
push str.._toolscrash_servicemain.cc
call fcn.00411590
add esp, 8
cmp eax, 1
jl 0x404147
push 0xffffffffffffffff
push 0x3e
push str.._toolscrash_servicemain.cc
lea ecx, [ebp - 0x198]
or ebx, 2
call fcn.00410e90
add eax, 4
push str.ready_to_process_crash_requests
push eax
call fcn.00403c40
add esp, 8
test bl, 2
je 0x40415a
lea ecx, [ebp - 0x198]
and ebx, 0xfffffffd
call fcn.004108d0
lea ecx, [ebp - 0xa4]
call fcn.004085e0
push 0x1e
push str.._toolscrash_servicemain.cc
mov esi, eax
call fcn.00411590
add esp, 8
cmp eax, 1
jl 0x4041ab
push 0xffffffffffffffff
push 0x43
push str.._toolscrash_servicemain.cc
lea ecx, [ebp - 0x198]
or ebx, 4
call fcn.00410e90
push esi
add eax, 4
push str.session_end._return_code_is
push eax
call fcn.00403c40
add esp, 8
mov ecx, eax
call fcn.00403e10
test bl, 4
je 0x4041bb
lea ecx, [ebp - 0x198]
call fcn.004108d0
lea ecx, [ebp - 0xa4]
call fcn.004059c0
lea ecx, [ebp - 0x20]
call fcn.004446d0
lea ecx, [ebp - 0x3c]
call fcn.004446d0
lea ecx, [ebp - 0x104]
call fcn.00413d90
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004235d5
mov esp, ebp
pop ebp
ret 0x10