Function at 0x40e800
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
xor esi, esi
push 0x18
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x40ebb6
mov dword [ebp - 0x1c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x1c]
mov ebx, 1
mov byte [eax + 0x14], bl
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x15], bl
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
lea ecx, [ebp - 0x38]
push ecx
lea edi, [eax + 0x10]
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x38], esi
call fcn.00487c20
add esp, 8
cmp eax, ebx
jne 0x40e914
mov eax, dword [ebp - 0x38]
cmp eax, esi
jge 0x40e885
push 0x80070057
call fcn.0040b800
mov edx, dword [edi - 8]
sub ebx, dword [edi - 4]
sub edx, eax
or ebx, edx
jge 0x40e89d
push eax
lea ecx, [ebp - 0x10]
call fcn.00406eb0
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00487c20
mov eax, dword [edi - 8]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
add esp, 0x10
cmp eax, esi
jl 0x40e87b
cmp eax, dword [edi - 8]
jg 0x40e87b
lea edx, [edi - 0x10]
xor ecx, ecx
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], cx
mov dword [ebp - 0xc], str.uinf
call fcn.00406aa0
lea esi, [eax + 0x10]
add esp, 4
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.00408690
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x2c]
call fcn.00407b90
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041f360
mov edx, dword [0x4ae214]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
push esi
lea ecx, [ebp - 0x10]
add eax, 0x10
push 0x497c54
push ecx
mov dword [ebp - 0x10], eax
call fcn.00407630
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
add esp, 0xc
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x20]
mov dword [ebp - 0xc], str.austate
call fcn.00408760
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x2c]
call fcn.00407b90
call fcn.0041f6b0
mov esi, 0x497858
mov dword [ebp - 0xc], str.stalive
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x20]
test al, al
je 0x40e992
mov dword [ebp - 8], esi
call fcn.00408760
push eax
lea ecx, [ebp - 0x20]
push ecx
jmp 0x40e9a3
mov dword [ebp - 8], 0x497cbc
call fcn.00408760
push eax
lea edx, [ebp - 0x20]
push edx
lea ebx, [ebp - 0x2c]
call fcn.00407b90
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405690
push 0x19
push str._baidu_browserconfig.ini
lea ebx, [ebp - 0x34]
call fcn.004064e0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
je 0x40eaee
test al, 0x10
jne 0x40eaee
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.00419390
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
push 0
push str.REPORT
push 0x497cb8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [0x4ae214]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov edx, esi
test ebx, ebx
jne 0x40ea40
mov edx, 0x497cbc
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea45
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x24]
call fcn.004069f0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x2c], 0x497cc0
mov dword [ebp - 0x24], eax
call fcn.00406aa0
lea esi, [eax + 0x10]
add esp, 4
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x28], esi
call fcn.00408690
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x2c]
call fcn.00407b90
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40eab1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eacd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40eb10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0x497cc0
mov dword [ebp - 0x28], esi
call fcn.00408760
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x2c]
call fcn.00407b90
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eb2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x10
push esp
lea ecx, [ebp - 0x20]
call fcn.004067e0
push ecx
mov ecx, esp
push 0x499414
call fcn.00405690
mov ecx, dword [ebp + 8]
push ecx
call fcn.004131e0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eb70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb8c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp + 8]
lea esi, [ebp - 0x20]
call fcn.00406b10
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp + 8], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3