Function at 0x406002
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x7e4]
sub esp, 0x864
mov eax, dword [0x473f80]
xor eax, ebp
mov dword [ebp + 0x7e0], eax
push ebx
push esi
mov esi, dword [ebp + 0x7f0]
push edi
push esi
push dword [ebp + 0x7ec]
mov dword [ebp - 0x4c], ecx
push str.SetCookiesFromFile_bInstall____d___FileName____s_.
call fcn.0040b2df
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40605e
push str.Not_found_Cookie_Configure_file__cannot_set_cookies...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 0x80004005
jmp 0x4067f2
push esi
call fcn.0044c931
lea edi, [eax + eax + 1]
push edi
call fcn.0044c864
push 0x3a8
mov ebx, eax
push edi
push ebx
push esi
call fcn.0040b212
mov esi, dword [ebp - 0x4c]
add esp, 0x18
xor edi, edi
push edi
add esi, 0x14
push ebx
mov ecx, esi
call fcn.00409cc3
test al, al
jne 0x40609c
push str.Failed_to_load_file_from_this_xml_file...
jmp 0x40604e
cmp ebx, edi
je 0x4060a7
push ebx
call fcn.0044d26c
pop ecx
push str.Success_load_file_from_cookie_xml_file...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x7ec], edi
mov dword [ebp - 0x68], esi
mov eax, str.Install
jne 0x4060c7
mov eax, str.Uninstall
push eax
lea ecx, [ebp - 0x60]
call fcn.00403296
push str.Item
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x7c]
push eax
push str.CookiesInfo
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x68]
call fcn.00409a62
mov ecx, eax
call fcn.00409a62
mov ecx, eax
call fcn.00409a62
mov ecx, eax
call fcn.0040142c
cmp eax, edi
mov dword [ebp - 0x58], eax
jne 0x406132
push 0xd28
push str.Cookie.cpp
mov eax, 0x80004005
push str.Cookie
push eax
mov dword [ebp - 0x50], eax
call sub.LogDll.dll_TraceErrorReport
add esp, 0x10
jmp 0x4067e4
mov esi, 0x206
push esi
lea eax, [ebp + 0x3d2]
push edi
push eax
mov word [ebp + 0x3d0], di
call fcn.0044d600
push esi
lea eax, [ebp + 0x5da]
push edi
push eax
mov word [ebp + 0x5d8], di
call fcn.0044d600
push esi
lea eax, [ebp + 0x1ca]
push edi
push eax
mov word [ebp + 0x1c8], di
call fcn.0044d600
push esi
lea eax, [ebp - 0x3e]
push edi
push eax
mov word [ebp - 0x40], di
call fcn.0044d600
add esp, 0x30
mov edi, str.Cookie.cpp
mov esi, str.Cookie
mov ebx, dword [ebp - 0x58]
push str.Domain
mov ecx, ebx
call fcn.004092c6
push str.Name
mov ecx, ebx
mov dword [ebp - 0x64], eax
call fcn.004092c6
push str.Value
mov ecx, ebx
mov dword [ebp - 0x6c], eax
call fcn.004092c6
push str.DomainFlag
mov ecx, ebx
mov dword [ebp - 0x74], eax
call fcn.004092c6
mov ebx, 0x3a8
push ebx
mov dword [ebp - 0x50], eax
push 0x104
lea eax, [ebp + 0x3d0]
push eax
push dword [ebp - 0x64]
call fcn.0040b27a
push ebx
push 0x104
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x6c]
call fcn.0040b27a
push ebx
push 0x104
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x74]
call fcn.0040b27a
add esp, 0x30
cmp dword [ebp - 0x50], 0
je 0x406240
push dword [ebp - 0x50]
call fcn.0044d4c0
test eax, eax
pop ecx
je 0x406240
push ebx
push 0x104
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x50]
call fcn.0040b27a
add esp, 0x10
lea eax, [ebp + 0x3d0]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403b7b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
push str.http:__
push eax
call fcn.00402bf8
add esp, 0xc
push eax
lea ecx, [ebp - 0x44]
call fcn.00402c33
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401931
mov ebx, 0x475868
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040204c
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0040204c
lea eax, [ebp - 0x5c]
push eax
push ecx
lea eax, [ebp + 0x5d8]
mov ecx, esp
push eax
call fcn.00403b7b
push ecx
lea eax, [ebp + 0x3d0]
mov ecx, esp
push eax
call fcn.00403b7b
mov ecx, dword [ebp - 0x4c]
call fcn.004039a7
cmp dword [ebp + 0x7ec], 0
je 0x406495
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x5d8]
push eax
call fcn.004016be
push str.expires__Sat__01_Jan_2050_00:00:00_GMT
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp - 0x54]
push str._s__path____s
push eax
call fcn.00402d1f
add esp, 0x10
push dword [ebp - 0x54]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x406339
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
push 2
push 0xd51
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
call fcn.0040b2df
pop ecx
pop ecx
jmp 0x406370
push dword [ebp - 0x54]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
mov ebx, str.InternetSetCookie__domain__s___name__s___value__s_
push ebx
push 4
push 0xd56
push edi
push esi
call sub.LogDll.dll_TraceToFile
push dword [ebp - 0x54]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
push ebx
call fcn.0040b2df
add esp, 0x30
push dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00405dc4
test eax, eax
jge 0x4063ad
push eax
push str.chromeSetCookie_failed___error_code__0x_08x
push 2
push 0xd5d
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00404fcd
test eax, eax
jge 0x4063e4
push eax
push str.chrome360SetCookie_failed___error_code__0x_08x
push 2
push 0xd62
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00405505
test eax, eax
jge 0x40641b
push eax
push str.Se360SetCookie_failed___error_code__0x_08x
push 2
push 0xd67
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00405269
test eax, eax
jge 0x406452
push eax
push str.SogouSetCookie_failed___error_code__0x_08x
push 2
push 0xd6c
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00404dea
test eax, eax
mov dword [ebp - 0x50], eax
jge 0x4066f9
push eax
push str.firefoxSetCookie_failed___error_code__0x_08x
push 2
push 0xd72
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
jmp 0x4066f9
push ebx
lea ecx, [ebp - 0x48]
call fcn.0040204c
push str.expires__Sat__01_Jan_2050_00:00:00_GMT
push str.TangRouteType__0
lea eax, [ebp - 0x48]
push str._s__path____s
push eax
call fcn.00402d1f
mov ecx, dword [ebp - 0x4c]
add esp, 0x10
lea eax, [ebp + 0x5d8]
push eax
call fcn.0040173b
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x406514
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
push 2
push 0xd83
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
call fcn.0040b2df
pop ecx
pop ecx
mov ebx, str.InternetSetCookie__domain__s___name__s___value__s_
jmp 0x40654b
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
mov ebx, str.InternetSetCookie__domain__s___name__s___value__s_
push ebx
push 4
push 0xd88
push edi
push esi
call sub.LogDll.dll_TraceToFile
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
push ebx
call fcn.0040b2df
add esp, 0x30
push str.expires__Sat__01_Jan_2000_00:00:00_GMT
push str.TangRouteType__0
lea eax, [ebp - 0x48]
push str._s__path____s
push eax
call fcn.00402d1f
add esp, 0x10
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x4065ad
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
push 2
push 0xd93
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
call ebx
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
call fcn.0040b2df
pop ecx
pop ecx
jmp 0x4065df
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
push ebx
push 4
push 0xd98
push edi
push esi
call sub.LogDll.dll_TraceToFile
push dword [ebp - 0x48]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
push ebx
call fcn.0040b2df
add esp, 0x30
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.0040419d
test eax, eax
jge 0x406619
push eax
push str.chrome360RemoveCookie_failed___error_code__0x_08x
push 2
push 0xd9f
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.004048fb
test eax, eax
jge 0x406650
push eax
push str.Se360RemoveCookie_failed___error_code__0x_08x
push 2
push 0xda4
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.0040454c
test eax, eax
jge 0x406687
push eax
push str.SogouRemoveCookie_failed___error_code__0x_08x
push 2
push 0xda9
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
push dword [ebp - 0x5c]
mov eax, 0x465470
push eax
push eax
push eax
mov ecx, ebx
call fcn.00405b8e
test eax, eax
jge 0x4066b4
push eax
push str.chromeRemoveCookie_failed___error_code__0x_08x
push 2
push 0xdae
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0x5d8]
push eax
lea eax, [ebp + 0x3d0]
push eax
mov ecx, ebx
call fcn.00403ece
test eax, eax
mov dword [ebp - 0x50], eax
jge 0x4066ee
push eax
push str.firefoxRemoveCookie_failed___error_code__0x_08x
push 2
push 0xdb3
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.00401931
cmp dword [ebp + 0x7ec], 0
jne 0x4067ae
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call fcn.00404b84
push 0
mov ebx, str.www.
push ebx
lea ecx, [ebp - 0x44]
call fcn.00402383
cmp eax, 0xffffffff
je 0x4067ae
push 0x4639c8
push ebx
lea ecx, [ebp - 0x44]
call fcn.00402724
push dword [ebp - 0x54]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x406775
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Call_InternetSetCookie_return_error__code__0x_08x
push 2
push 0xdc3
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x18
jmp 0x406798
push dword [ebp - 0x54]
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
push str.InternetSetCookie__domain__s___name__s___value__s_
push 4
push 0xdc7
push edi
push esi
call sub.LogDll.dll_TraceToFile
add esp, 0x20
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x5d8]
push eax
push dword [ebp - 0x44]
call fcn.00404b84
mov ecx, dword [ebp - 0x58]
call fcn.00408d6b
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
mov dword [ebp - 0x58], eax
call fcn.00401931
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.00401931
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00401931
cmp dword [ebp - 0x58], 0
jne 0x406192
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
call fcn.00401931
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x7e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d67a
add ebp, 0x7e4
leave
ret 8