Function at 0x40ea83
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x8dc
mov eax, 0x4650e8
call fcn.0043587d
mov ebx, ecx
lea ecx, [ebp - 0x8e8]
call fcn.0040b355
push ecx
mov ecx, esp
mov dword [ebp - 0x8cc], esp
xor esi, esi
push str.configdnshelper_new_dnslist.cfg
mov dword [ebp - 4], esi
call fcn.004076dd
push ecx
mov eax, esp
mov dword [ebp - 0x8a8], esp
push eax
lea ecx, [ebp - 0x8e8]
mov byte [ebp - 4], 1
call fcn.0040df4c
lea eax, [ebp - 0x8c0]
push eax
lea ecx, [ebp - 0x8e8]
mov byte [ebp - 4], 0
call fcn.0040df75
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push closesocket
push dword [ebp - 0x8c0]
mov byte [ebp - 4], 2
call edi
mov dword [ebp - 0x89c], eax
cmp eax, 0xffffffff
jne 0x40eb32
push esi
push esi
push 1
push esi
push 3
push 0xc0000000
push dword [ebp - 0x8c0]
call edi
mov dword [ebp - 0x89c], eax
cmp eax, 0xffffffff
je 0x40f457
xor eax, eax
mov dword [ebp - 0x8c8], esi
lea edi, [ebp - 0x8c4]
stosd dword es:[edi], eax
lea eax, [ebp - 0x8c8]
push eax
push dword [ebp - 0x89c]
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov eax, dword [ebp - 0x8c8]
inc eax
push eax
mov dword [ebp - 0x8d0], esi
call fcn.004376a2
mov edi, eax
mov eax, dword [ebp - 0x8c8]
inc eax
push eax
push esi
push edi
call fcn.004374f0
add esp, 0x10
push esi
lea eax, [ebp - 0x8d0]
push eax
push dword [ebp - 0x8c8]
push edi
push dword [ebp - 0x89c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x89c]
test eax, eax
je 0x40f44f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x898]
mov dword [ebp - fcn.00412957], vtable.CTiXmlConfig.0
call fcn.00409c03
push dword [ebp - 0x8c0]
lea ecx, [ebp - 0x898]
mov byte [ebp - 4], 3
call fcn.00409651
push 0x46d498
lea ecx, [ebp - 0x898]
call fcn.00409682
lea eax, [ebx + 0x68]
push eax
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x66c], 1
call fcn.00409be2
inc dword [ebp - 0x68c]
lea eax, [ebx + 0xac]
push eax
mov dword [ebp - 0x8cc], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push esi
push dword [ebp - 0x8c8]
lea ecx, [ebp - 0x898]
push edi
mov byte [ebx + 0xa8], 1
call fcn.0040b5ec
lea ecx, [ebp - 0x898]
call fcn.004096d7
cmp eax, esi
je 0x40ec46
mov ecx, eax
call fcn.004011ce
mov eax, dword [ebp - 0x688]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, esi
jne 0x40ecad
mov eax, dword [ebp - 0x688]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, esi
jne 0x40ecad
push 0x98
call fcn.00435026
pop ecx
mov dword [ebp - 0x8a8], eax
mov byte [ebp - 4], 4
cmp eax, esi
je 0x40ec9b
push 0x46d494
push str.UTF_16
push 0x46d488
mov ecx, eax
call fcn.00402a95
jmp 0x40ec9d
xor eax, eax
mov ecx, dword [ebp - 0x688]
push eax
mov byte [ebp - 4], 3
call fcn.00401548
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.LastModified
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov edi, eax
cmp edi, esi
je 0x40ed07
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x8a4]
push eax
mov ecx, ebx
call fcn.0040cf17
push dword [eax]
lea ecx, [ebp - 0x898]
push edi
mov byte [ebp - 4], 5
call fcn.0040d2a4
mov ecx, dword [ebp - 0x8a4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00405c12
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.LastUpdateTime
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov edi, eax
cmp edi, esi
je 0x40ed61
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x8a4]
push eax
mov ecx, ebx
call fcn.0040cf17
push dword [eax]
lea ecx, [ebp - 0x898]
push edi
mov byte [ebp - 4], 6
call fcn.0040d2a4
mov ecx, dword [ebp - 0x8a4]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00405c12
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.EnableReportUnknowDNS
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
cmp eax, esi
je 0x40ed9e
mov ecx, str.true
cmp dword [ebx], esi
jne 0x40ed91
mov ecx, str.false
push ecx
push eax
lea ecx, [ebp - 0x898]
call fcn.0040d2a4
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.RefreshTime
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
cmp eax, esi
je 0x40edd1
push str.86400
push eax
lea ecx, [ebp - 0x898]
call fcn.0040d2a4
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.BlackList
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov ecx, eax
mov dword [ebp - 0x8a8], ecx
cmp ecx, esi
je 0x40ef5b
call fcn.004011ce
mov dword [ebp - 0x89c], esi
cmp dword [ebx + 0x3c], esi
jle 0x40ef5b
mov dword [ebp - 0x8a0], esi
mov eax, dword [ebp - 0x89c]
cmp eax, esi
jl 0x40f304
cmp eax, dword [ebx + 0x3c]
jge 0x40f304
mov eax, dword [ebx + 0x38]
add eax, dword [ebp - 0x8a0]
lea ecx, [ebp - 0x8bc]
push eax
call fcn.0040d893
push 0x46d3c8
lea ecx, [ebp - 0x898]
mov byte [ebp - 4], 7
call fcn.00409737
mov ecx, dword [ebp - 0x8a8]
push eax
mov dword [ebp - 0x8ac], eax
call fcn.00401548
push dword [ebp - 0x8b0]
lea ecx, [ebp - 0x898]
push str.Note
push dword [ebp - 0x8ac]
call fcn.0040c27f
xor edi, edi
cmp dword [ebp - 0x8b8], esi
jle 0x40ef22
push 0x46d3b4
lea ecx, [ebp - 0x898]
call fcn.00409737
mov ecx, dword [ebp - 0x8ac]
push eax
mov dword [ebp - 0x8a4], eax
call fcn.00401548
cmp edi, esi
jl 0x40f304
cmp edi, dword [ebp - 0x8b8]
jge 0x40f304
mov eax, dword [ebp - 0x8bc]
lea eax, [eax + edi*8]
push dword [eax]
lea ecx, [ebp - 0x898]
push dword [ebp - 0x8a4]
call fcn.0040d2a4
cmp edi, dword [ebp - 0x8b8]
jge 0x40f304
mov eax, dword [ebp - 0x8bc]
lea eax, [eax + edi*8]
push dword [eax + 4]
lea ecx, [ebp - 0x898]
push str.AutoFix
push dword [ebp - 0x8a4]
call fcn.0040c327
inc edi
cmp edi, dword [ebp - 0x8b8]
jl 0x40ee95
mov ecx, dword [ebp - 0x8b0]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00405c12
lea ecx, [ebp - 0x8bc]
call fcn.0040cde1
inc dword [ebp - 0x89c]
mov eax, dword [ebp - 0x89c]
add dword [ebp - 0x8a0], 0x10
cmp eax, dword [ebx + 0x3c]
jl 0x40ee19
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.WhiteList
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov ecx, eax
mov dword [ebp - 0x8a8], ecx
cmp ecx, esi
je 0x40f0af
call fcn.004011ce
mov dword [ebp - 0x89c], esi
cmp dword [ebx + 0x48], esi
jle 0x40f0af
mov dword [ebp - 0x8ac], esi
mov eax, dword [ebp - 0x89c]
cmp eax, esi
jl 0x40f304
cmp eax, dword [ebx + 0x48]
jge 0x40f304
mov eax, dword [ebx + 0x44]
add eax, dword [ebp - 0x8ac]
lea ecx, [ebp - 0x8bc]
push eax
call fcn.0040d893
push 0x46d3c8
lea ecx, [ebp - 0x898]
mov byte [ebp - 4], 8
call fcn.00409737
mov ecx, dword [ebp - 0x8a8]
push eax
mov dword [ebp - 0x8a0], eax
call fcn.00401548
push dword [ebp - 0x8b0]
lea ecx, [ebp - 0x898]
push str.Note
push dword [ebp - 0x8a0]
call fcn.0040c27f
xor edi, edi
cmp dword [ebp - 0x8b8], esi
jle 0x40f076
push 0x46d3b4
lea ecx, [ebp - 0x898]
call fcn.00409737
mov ecx, dword [ebp - 0x8a0]
push eax
mov dword [ebp - 0x8a4], eax
call fcn.00401548
cmp edi, esi
jl 0x40f304
cmp edi, dword [ebp - 0x8b8]
jge 0x40f304
mov eax, dword [ebp - 0x8bc]
lea eax, [eax + edi*8]
push dword [eax]
lea ecx, [ebp - 0x898]
push dword [ebp - 0x8a4]
call fcn.0040d2a4
inc edi
cmp edi, dword [ebp - 0x8b8]
jl 0x40f01b
mov ecx, dword [ebp - 0x8b0]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00405c12
lea ecx, [ebp - 0x8bc]
call fcn.0040cde1
inc dword [ebp - 0x89c]
mov eax, dword [ebp - 0x89c]
add dword [ebp - 0x8ac], 0x10
cmp eax, dword [ebx + 0x48]
jl 0x40efa3
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.UserDefineDNS
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov ecx, eax
mov dword [ebp - 0x8a8], ecx
cmp ecx, esi
je 0x40f203
call fcn.004011ce
mov dword [ebp - 0x89c], esi
cmp dword [ebx + 0x60], esi
jle 0x40f203
mov dword [ebp - 0x8ac], esi
mov eax, dword [ebp - 0x89c]
cmp eax, esi
jl 0x40f304
cmp eax, dword [ebx + 0x60]
jge 0x40f304
mov eax, dword [ebx + 0x5c]
add eax, dword [ebp - 0x8ac]
lea ecx, [ebp - 0x8bc]
push eax
call fcn.0040d893
push 0x46d3c8
lea ecx, [ebp - 0x898]
mov byte [ebp - 4], 9
call fcn.00409737
mov ecx, dword [ebp - 0x8a8]
push eax
mov dword [ebp - 0x8a0], eax
call fcn.00401548
push dword [ebp - 0x8b0]
lea ecx, [ebp - 0x898]
push str.Note
push dword [ebp - 0x8a0]
call fcn.0040c27f
xor edi, edi
cmp dword [ebp - 0x8b8], esi
jle 0x40f1ca
push 0x46d3b4
lea ecx, [ebp - 0x898]
call fcn.00409737
mov ecx, dword [ebp - 0x8a0]
push eax
mov dword [ebp - 0x8a4], eax
call fcn.00401548
cmp edi, esi
jl 0x40f304
cmp edi, dword [ebp - 0x8b8]
jge 0x40f304
mov eax, dword [ebp - 0x8bc]
lea eax, [eax + edi*8]
push dword [eax]
lea ecx, [ebp - 0x898]
push dword [ebp - 0x8a4]
call fcn.0040d2a4
inc edi
cmp edi, dword [ebp - 0x8b8]
jl 0x40f16f
mov ecx, dword [ebp - 0x8b0]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00405c12
lea ecx, [ebp - 0x8bc]
call fcn.0040cde1
inc dword [ebp - 0x89c]
mov eax, dword [ebp - 0x89c]
add dword [ebp - 0x8ac], 0x10
cmp eax, dword [ebx + 0x60]
jl 0x40f0f7
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.IgnoreReportDNS
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov dword [ebp - 0x8a8], eax
cmp eax, esi
je 0x40f2ba
mov ecx, eax
call fcn.004011ce
cmp dword [ebx + 0x54], 0
jle 0x40f2b8
test esi, esi
js 0x40f313
cmp esi, dword [ebx + 0x54]
jge 0x40f313
mov eax, dword [ebx + 0x50]
lea eax, [eax + esi*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00405e04
lea edi, [eax + 0x10]
mov dword [ebp - 0x8a0], edi
lea ecx, [ebp - 0x898]
mov byte [ebp - 4], 0xa
mov dword [esp], 0x46d3c8
call fcn.00409737
mov ecx, dword [ebp - 0x8a8]
push eax
mov dword [ebp - 0x8a4], eax
call fcn.00401548
push edi
push 0x46d3b4
push dword [ebp - 0x8a4]
lea ecx, [ebp - 0x898]
call fcn.0040c27f
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 3
call fcn.00405c12
inc esi
cmp esi, dword [ebx + 0x54]
jl 0x40f23c
xor esi, esi
lea ecx, [ebp - 0x898]
call fcn.004096d7
push 1
push str.AdaptersInfo
push eax
lea ecx, [ebp - 0x898]
call fcn.0040e441
mov dword [ebp - 0x8a8], eax
cmp eax, esi
je 0x40f3ef
mov ecx, eax
call fcn.004011ce
mov dword [ebp - 0x89c], esi
cmp dword [ebx + 0x30], esi
jle 0x40f3ef
mov dword [ebp - 0x8a0], esi
jmp 0x40f31b
push esi
push esi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.DLL_RaiseException]
push 0
push 0
jmp 0x40f306
xor esi, esi
mov eax, dword [ebp - 0x89c]
cmp eax, esi
jl 0x40f304
cmp eax, dword [ebx + 0x30]
jge 0x40f304
mov esi, dword [ebx + 0x2c]
add esi, dword [ebp - 0x8a0]
mov ecx, 0x186
lea edi, [ebp - 0x628]
rep movsd dword es:[edi], dword [esi]
push str.Adapter
lea ecx, [ebp - 0x898]
call fcn.00409737
mov ecx, dword [ebp - 0x8a8]
mov esi, eax
push esi
call fcn.00401548
lea eax, [ebp - 0x628]
push eax
push str.GUID
push esi
lea ecx, [ebp - 0x898]
call fcn.0040c27f
push str.PrimDNS
lea ecx, [ebp - 0x898]
call fcn.00409737
mov edi, eax
push edi
mov ecx, esi
call fcn.00401548
lea eax, [ebp - 0x420]
push eax
push edi
lea ecx, [ebp - 0x898]
call fcn.0040d2a4
push 0x46d2fc
lea ecx, [ebp - 0x898]
call fcn.00409737
mov edi, eax
push edi
mov ecx, esi
call fcn.00401548
lea eax, [ebp - 0x218]
push eax
push edi
lea ecx, [ebp - 0x898]
call fcn.0040d2a4
inc dword [ebp - 0x89c]
mov eax, dword [ebp - 0x89c]
add dword [ebp - 0x8a0], 0x618
cmp eax, dword [ebx + 0x30]
jl 0x40f319
push dword [ebp - 0x8cc]
mov byte [ebx + 0xa8], 0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
dec dword [ebp - 0x68c]
lea ecx, [ebp - 0x898]
call fcn.0040e168
lea ecx, [ebp - 0x898]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.004096b9
mov ecx, dword [ebp - 0x8c0]
add ecx, 0xfffffff0
call fcn.00405c12
lea ecx, [ebp - 0x8e8]
call fcn.0040a472
mov ecx, dword [ebp - 0x8d8]
add ecx, 0xfffffff0
call fcn.00405c12
mov eax, esi
jmp 0x40f480
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40f424
mov ecx, dword [ebp - 0x8c0]
add ecx, 0xfffffff0
call fcn.00405c12
lea ecx, [ebp - 0x8e8]
call fcn.0040a472
mov ecx, dword [ebp - 0x8d8]
add ecx, 0xfffffff0
call fcn.00405c12
xor eax, eax
call fcn.00435900
ret