Function at 0x406e08
Capabilities:
Accept command line arguments
Create thread
Get file attributes
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x426084]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.wmain.stamp
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
push str.kernel32.dll
mov dword [eax + 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov esi, 0x423a34
cmp eax, edi
je 0x406e6f
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x406e6f
push esi
call eax
push edi
push edi
push str.Baidubrowser_ColdStartup_Prefetch
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x406e99
call fcn.00406d4c
test eax, eax
jne 0x406e99
push str.baidubrowserstart
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
test ax, ax
jne 0x406eab
push edi
push edi
push edi
push 0x406db9
push edi
push edi
call fcn.0040a694
add esp, 0x18
call fcn.004025a9
lea eax, [esp + 0x10]
push eax
call fcn.004071a4
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00401076
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00408965
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
call fcn.00407156
lea ecx, [esp + 0x10]
lea ebx, [esp + 0x30]
call fcn.00401226
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00408965
lea eax, [esp + 0x10]
push eax
mov edi, str.type
call fcn.00407156
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, ebx
push eax
call fcn.00401655
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00408965
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x423af8]
fstp qword [esp + 0x10]
call fcn.00406b3a
mov ecx, dword [esp + 0x254]
xor eax, eax
cmp ecx, dword [esp + 0x258]
mov ecx, dword [esp + 0xc]
setne al
push eax
call fcn.0040232d
pop ecx
test eax, eax
je 0x406fd5
push 0x42388c
push str.bdupdate_
push 0x25
call fcn.00408f0a
add esp, 0xc
xor edi, edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00408965
lea eax, [esp + 0x30]
push eax
call fcn.00406aed
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040937a
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x1fe
mov word [esp + 0x26c], ax
lea eax, [esp + 0x26e]
push ebx
push eax
call fcn.00409a20
add esp, 0xc
lea ecx, [esp + 0x268]
call fcn.00401cd5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
push edi
push str.thread_info__TID:_u_NAME:
push str.thread_
push 0x10
call fcn.00408f0a
mov ecx, edi
call fcn.00401000
call fcn.00406bf4
push 0x42390c
push esi
push 0x25
call fcn.00408f0a
add esp, 0x1c
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x423924
push esi
push 0x25
call fcn.00408f0a
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
fld qword [esp + 0x10]
push ecx
push ecx
fstp qword [esp]
push dword [ebp + 0x10]
push dword [esp + 0x38]
call fcn.00406422
add esp, 0x10
mov edi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.browser
push esi
push 0x25
call fcn.00408f0a
add esp, 0xc
push ebx
push ebx
push str.Baidubrowser_QUIT_FROM_SETUP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4070cb
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], ebx
je 0x4070b8
push str.init
lea eax, [esp + 0x10]
push eax
call fcn.0040728d
test eax, eax
jne 0x4070cb
cmp edi, 0xfffffffd
je 0x4070cb
push ebx
lea ecx, [esp + 0x26c]
call fcn.00402194
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x406fa6