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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x214]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.00428660
mov al, byte [ebx]
test al, al
pop ecx
pop ecx
je 0x40f934
mov cl, byte [ebx + 1]
test cl, cl
je 0x40f934
cmp cl, 0x3a
je 0x40f934
cmp al, 0x5c
je 0x40f934
push 0x1ff
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push 0x5c
push eax
call fcn.00428f60
test eax, eax
pop ecx
pop ecx
push ebx
je 0x40f926
inc eax
jmp 0x40f92c
lea eax, [ebp - 0x214]
push eax
call fcn.00428660
pop ecx
pop ecx
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f97b
push 0x200
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push str.WARNING:_Untouchable_network_file_not_found____s
jmp 0x40fb40
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x989680
ja 0x40fb1d
cmp dword [ebp - 0x10], 0
ja 0x40fb1d
lea eax, [esi + 1]
push eax
call fcn.0043be5a
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov byte [ebx + esi], 0
cmp byte [ebx], 0
mov esi, ebx
je 0x40fae8
mov al, byte [esi]
xor edi, edi
jmp 0x40f9e8
cmp al, 0xa
je 0x40f9ec
test al, al
je 0x40f9ec
inc edi
mov al, byte [edi + esi]
cmp al, 0xd
jne 0x40f9dc
mov eax, 0x3ff
cmp edi, eax
mov dword [ebp - 4], edi
jbe 0x40f9fb
mov dword [ebp - 4], eax
push dword [ebp - 4]
lea eax, [ebp - 0x828]
push esi
push eax
call fcn.00427a30
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x828], 0
add esi, edi
xor ecx, ecx
mov cl, byte [esi]
push ecx
call fcn.0040af7e
add esp, 0x10
jmp 0x40fa39
test cl, cl
je 0x40fa3d
inc esi
xor ecx, ecx
mov cl, byte [esi]
push ecx
call fcn.0040af7e
add esp, 4
test eax, eax
jne 0x40fa27
lea eax, [ebp - 0x828]
push 0x3b
push eax
call fcn.00428980
test eax, eax
pop ecx
pop ecx
je 0x40fa64
lea eax, [ebp - 0x828]
push 0x3b
push eax
call fcn.00428980
pop ecx
pop ecx
mov byte [eax], 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0041bb96
test eax, eax
pop ecx
pop ecx
jne 0x40fa9e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00406cb8
add esp, 0xc
jmp 0x40fab0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
jne 0x40faba
cmp dword [ebp - 8], edi
je 0x40fadf
push dword [ebp - 4]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
call edi
push dword [ebp - 8]
mov dword [ebp - 4], eax
call edi
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040f895
inc dword [ebp - 0x14]
cmp byte [esi], 0
jne 0x40f9d6
push ebx
call fcn.0043be55
mov dword [esp], 0x200
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.Untouchable_networks_list_loaded___d_entries_____s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40fb4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x200
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push str.WARNING:_Untouchable_network_file_is_too_big_to_load____s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
push 4
push esi
push 0xfb9
push dword [eax + 0x128]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
leave
ret 4