Function at 0x4076ea
Capabilities:
Accept command line arguments
Get file attributes
Query environment variable
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x439034]
xor eax, esp
mov dword [esp + 0x4c8], 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 esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edi, edi
push edi
push edi
push str.Baidubrowser_Debug_WaitDebugger
call esi
test eax, eax
jbe 0x407747
mov ebx, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
jmp 0x407741
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
test eax, eax
je 0x407736
push edi
push edi
push str.Baidubrowser_Debug_AtlInterface
call esi
test eax, eax
jbe 0x40775f
mov eax, dword [sym.imp.objectfactory.dll_PGO_AtlDebugInterface]
mov dword [eax], 1
call fcn.004075e2
call fcn.00407654
call fcn.00401fa4
lea eax, [esp + 0x10]
push eax
call fcn.00407b3b
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00401076
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00409f6e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407af6
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x14]
call fcn.0040129e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00409f6e
push str.type
lea eax, [esp + 0x14]
push eax
call fcn.00407af6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00401699
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00409f6e
cmp dword [esp + 0x28c], edi
jne 0x4077f6
xor eax, eax
jmp 0x407807
mov eax, dword [esp + 0x290]
sub eax, dword [esp + 0x28c]
sar eax, 2
xor ecx, ecx
cmp eax, edi
setne cl
push 0x1fe
lea eax, [esp + 0x2d6]
push edi
push eax
mov word [esp + 0x2dc], di
mov dword [esp + 0x1c], ecx
call fcn.0040add0
lea eax, [esp + 0x58]
add esp, 0xc
push eax
call fcn.00401bad
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x40784a
lea eax, [esp + 0x50]
push eax
push 0xff
lea eax, [esp + 0x2d8]
push eax
mov ebx, 0x436b00
push ebx
push 0x41ecd4
push str.autoupdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea esi, [esp + 0x50]
push 1
call fcn.00408812
lea eax, [esp + 0x2d0]
push eax
call fcn.00401e10
test eax, eax
pop ecx
je 0x4078a6
lea eax, [esp + 0x2d0]
push eax
call fcn.00401d65
test eax, eax
pop ecx
je 0x4078a6
push 1
call fcn.00401ebb
pop ecx
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], edi
je 0x4078c2
push 0x436410
lea eax, [esp + 0x10]
push eax
call fcn.00407c10
test eax, eax
jne 0x407933
push 0xd
pop ecx
mov esi, str.BaiduBrowser_MessageWindow
lea edi, [esp + 0x298]
rep movsd dword es:[edi], dword [esi]
push 0x4369d4
push ebx
push 0x25
movsw word es:[edi], word [esi]
call fcn.0040a382
add esp, 0xc
xor edi, edi
push edi
lea eax, [esp + 0x29c]
push eax
push edi
push 0xfffffffffffffffd
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp dword [esp + 0x10], edi
mov esi, eax
jne 0x40791f
cmp esi, edi
jne 0x407931
lea eax, [esp + 0x2d0]
push eax
call fcn.00401d65
test eax, eax
pop ecx
je 0x407923
push 1
call fcn.00401ebb
pop ecx
test esi, esi
jne 0x407931
call fcn.0040192a
test eax, eax
jne 0x407931
call fcn.00401f3f
xor edi, edi
mov dword [esp + 0x20], edi
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x20]
fild qword [esp + 0x18]
fdivp st(1)
fmul qword [0x436bb8]
fstp qword [esp + 0x10]
call fcn.00407528
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.0040a382
mov ecx, edi
call fcn.00401000
push 0x436a34
push ebx
push 0x25
call fcn.0040a382
add esp, 0x1c
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x436a4c
push ebx
push 0x25
call fcn.0040a382
add esp, 0xc
push esi
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.00406d3f
add esp, 0x10
mov edi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.browser
push ebx
push 0x25
call fcn.0040a382
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [eax - 0xc], esi
je 0x407a1d
push 0x436410
lea eax, [esp + 0x10]
push eax
call fcn.00407c10
test eax, eax
jne 0x407a9f
cmp edi, 0xfffffffd
je 0x407a9f
lea eax, [esp + 0x2d0]
push eax
call fcn.00401d65
test eax, eax
pop ecx
je 0x407a9f
push str.__pending_install
lea esi, [esp + 0x50]
call fcn.0040811b
push str.hide
push str.__visible
lea esi, [esp + 0x2a0]
call fcn.0040811b
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004098f0
add esp, 0xc
push 0xffffffffffffffff
xor edi, edi
push edi
lea esi, [esp + 0x54]
call fcn.00408fe6
push edi
push 1
lea esi, [esp + 0x38]
call fcn.00408812
push edi
push 1
lea esi, [esp + 0x2a0]
call fcn.00408812
lea ecx, [esp + 0x4c]
call fcn.00401c09
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407654
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00409f6e
lea eax, [esp + 0x68]
push eax
call fcn.004074dc
mov ecx, dword [esp + 0x4d4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aab8
mov esp, ebp
pop ebp
ret 0x10