Function at 0x41998a
Capabilities:
Check if file exists
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4740e4
mov esi, 0x104
lea edx, [ebp - 0x248]
mov edi, str.LFSLazy.hosts
push esi
mov ecx, edi
call fcn.00402de6
pop ecx
push eax
call fcn.0044a0f7
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419bb3
push 0x40
xor edi, edi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00447370
push ebx
push 1
lea eax, [ebp - 0x44]
push 6
push eax
call fcn.00451a9d
push 2
push edi
push ebx
call fcn.0044ad58
push ebx
call fcn.00449ec5
push edi
push 6
push ebx
mov esi, eax
call fcn.0044ad58
push 6
lea eax, [ebp - 0x44]
push str.LZYHST
push eax
call fcn.0044d630
add esp, 0x44
test eax, eax
jne 0x419aee
push 0x24
pop ecx
xor edx, edx
lea eax, [esi - 6]
div ecx
push 0x30
pop edi
mov dword [0x7ef40c], eax
add eax, 0x64
push edi
push eax
call fcn.00449f17
mov dword [0x7ef408], eax
pop ecx
pop ecx
test eax, eax
je 0x419c00
push ebx
push 1
lea eax, [ebp - 0x26c]
xor esi, esi
push 0x24
push eax
mov dword [ebp - 0x274], esi
call fcn.00451a9d
add esp, 0x10
test eax, eax
je 0x419ad2
xor ecx, ecx
mov dword [ebp - 0x270], ecx
mov esi, dword [0x7ef408]
mov eax, dword [ebp - 0x24c]
add esi, ecx
mov ecx, esi
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x26c]
push eax
push 0x20
pop edx
call fcn.004014cb
add dword [ebp - 0x270], edi
xor eax, eax
push ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x26c]
mov esi, dword [ebp - 0x274]
push 1
push 0x24
inc esi
push eax
mov dword [ebp - 0x274], esi
call fcn.00451a9d
mov ecx, dword [ebp - 0x270]
add esp, 0x14
test eax, eax
jne 0x419a74
cmp esi, dword [0x7ef40c]
je 0x419b62
push edi
push 0x46e060
push str.Hosts_file_invalid
jmp 0x419c0b
push 6
lea eax, [ebp - 0x44]
push str.LZYHS2
push eax
call fcn.0044d630
add esp, 0xc
test eax, eax
jne 0x419b78
push 0x30
pop edi
xor edx, edx
lea eax, [esi - 6]
div edi
push edi
mov dword [0x7ef40c], eax
add eax, 0x64
push eax
call fcn.00449f17
mov dword [0x7ef408], eax
pop ecx
pop ecx
test eax, eax
jne 0x419b39
push edi
push 0x46e060
push str.Could_not_allocate_memory_for_hosts.
jmp 0x419c0b
push ebx
push dword [0x7ef40c]
push edi
push eax
call fcn.00451a9d
add esp, 0x10
cmp eax, dword [0x7ef40c]
je 0x419b62
push edi
push 0x46e060
push str.Hosts_file_cannot_read
jmp 0x419c0b
push ebx
call fcn.0044a2d1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret
push ebx
call fcn.0044a2d1
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x144]
push str.Invalid_hosts_file__nHeader__6s__Size_d
push eax
call fcn.00401468
add esp, 0x14
lea eax, [ebp - 0x144]
push edi
push 0x46e060
push eax
push dword [0x6b845c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
jmp 0x419c19
push esi
lea edx, [ebp - 0x248]
mov ecx, edi
call fcn.00402de6
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x30
test eax, eax
je 0x419bdb
push 0x46e060
push str.Hosts_file_exist__but_cannot_open
jmp 0x419c0b
pop edi
push edi
push 0x64
call fcn.00449f17
mov dword [0x7ef408], eax
pop ecx
pop ecx
test eax, eax
jne 0x419b69
push edi
push 0x46e060
push str.Could_not_allocate_memory_for_hosts._2
jmp 0x419c0b
push edi
push 0x46e060
push 0x4740e8
push dword [0x6b845c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004498af
int3