Function at 0x406810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1015
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5211e4]
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, ecx
push 0
xor bl, bl
call fcn.00419e40
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.004133c0
add esp, 0xc
push 0x15
push str.Logproduct_tray.log
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040a430
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x4ea87c
cmovae eax, dword [ebp - 0x2c]
push 0x6400000
push 0
push 1
push eax
call fcn.004209a0
call fcn.00406490
push 0
mov ecx, eax
call fcn.00489e30
test al, al
jne 0x406962
call fcn.00420210
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x406955
push 0x67
push str.d:jenkins.jenkinsworkspacegroup_traffichealth_eye_careclienteye_care_tray_src_app_application.cc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], al
call fcn.0040a5c0
push 3
push 0x4eab04
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], bl
call fcn.0040a5c0
mov byte [ebp - 4], 2
call fcn.00420210
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004041d0
mov esi, eax
push str.ProductHelperSingleton_Init_fail.
push esi
mov byte [ebp - 4], 3
call fcn.004054a0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004055c0
lea ecx, [ebp - 0x44]
call fcn.00404c50
lea ecx, [ebp - 0x5c]
call fcn.00404c50
lea ecx, [ebp - 0x2c]
call fcn.00404ca0
jmp 0x406b6c
mov ecx, dword [0x5267e4]
test ecx, ecx
jne 0x4069c8
push 0x521148
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5267e4], 0
jne 0x4069b7
push 4
call fcn.0041d466
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4069a4
mov ecx, eax
mov dword [eax], 0
call fcn.0049b190
jmp 0x4069a6
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x5267e4], eax
push 0x521148
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5267e4]
push 0
push str.operate
push 0
call fcn.0049b210
test eax, eax
jne 0x406a9f
call fcn.00420210
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x406a92
push 0x67
push str.d:jenkins.jenkinsworkspacegroup_traffichealth_eye_careclienteye_care_tray_src_app_application.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.0040a5c0
push 3
push 0x4eab08
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.0040a5c0
mov byte [ebp - 4], 6
call fcn.00420210
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x2d
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004041d0
mov esi, eax
push str.init_statistic_fail.
push esi
mov byte [ebp - 4], 7
call fcn.004054a0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004055c0
lea ecx, [ebp - 0x5c]
call fcn.00404c50
lea ecx, [ebp - 0x44]
call fcn.00404c50
lea ecx, [ebp - 0x2c]
call fcn.00404ca0
jmp 0x406b6c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x34], 0
mov ecx, edx
mov dword [ebp - 0x30], 7
xor eax, eax
mov word [ebp - 0x44], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ac0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0040a6c0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x8a8]
call fcn.00481350
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x406b22
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b8a
push edx
push ecx
call fcn.0041d496
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi + 0x8f4], edx
mov bl, 1
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x8f0], eax
cmp edx, 8
jb 0x406b6c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b8f
push edx
push ecx
call fcn.0041d496
add esp, 8
mov al, bl
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.0041d327
mov esp, ebp
pop ebp
ret
call fcn.004b6e3e
call fcn.004b6e3e
int3