Function at 0x4656f9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x123]
push esi
push eax
mov byte [ebp - 0x124], 0
call fcn.005117f0
xor eax, eax
mov byte [ebp - 0x1c], 0
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0x168], si
lea edi, [ebp - 0x166]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x158], si
lea edi, [ebp - 0x156]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x134], esi
stosw word es:[edi], ax
je 0x46579c
cmp dword [0x6c2b00], esi
je 0x46579c
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
cmp dword [0x6c2b04], esi
je 0x4657ca
call fcn.004f16be
mov edi, eax
jmp 0x4657c2
call fcn.004f16be
sub eax, edi
cmp eax, 0x2710
jae 0x4657ca
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6c2b04], esi
jne 0x4657ad
push str.GatMem.sat
xor ebx, ebx
push esi
inc ebx
push esi
mov dword [0x6c2b04], ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x124]
push 0x533dd4
push eax
call fcn.00511173
add esp, 0x10
lea edi, [ebp - 0x124]
call fcn.0042ad00
test eax, eax
jne 0x465812
mov dword [0x6c2b04], esi
xor eax, eax
jmp 0x46578d
push 0x12d3
push str..Network.c
mov edx, 0x530488
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x140], ebx
call fcn.0042d2c6
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp - 0x13c], edi
jne 0x465855
lea eax, [ebp - 0x124]
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fopen___s____rb____FAILED:_the_data_cannot_be_loaded_because_the_file_cannot_be_opened_
call fcn.004265da
pop ecx
pop ecx
jmp 0x465805
push edi
push ebx
lea eax, [ebp - 0x128]
push 4
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
jae 0x46588a
push dword [ebp - 0x128]
push str.:8:LoadMostLikelyGateways___FAILED:_fread___FAILED:_Could_not_read_the_number_of_entries_that_the_file_contains:_iNumEntries___d
call fcn.004265da
pop ecx
pop ecx
mov ecx, edi
call fcn.0042d70e
jmp 0x465805
cmp dword [ebp - 0x128], 0xa
jle 0x4658bb
push 0xa
push 0xa
push dword [ebp - 0x128]
lea eax, [ebp - 0x124]
push eax
push str.:8:LoadMostLikelyGateways___encountered_an_exception:_The_file___s__has__ld_entries__but_the_max_allowed_is__ld.__Only__ld_entries_will_be_loaded.
call fcn.00426c01
add esp, 0x14
mov dword [ebp - 0x128], 0xa
cmp dword [ebp - 0x128], esi
jle 0x46587e
push edi
call fcn.0051344f
cmp eax, 0xffffffff
pop ecx
je 0x46590b
mov esi, ebx
mov edi, str.Thank_you_Jesus_for_your_help.__I_adore_you_desperately.__I_love_you_so_much__violently.__I_depsperately_want_you_more_than_anything_
mov ebx, edi
dec ebx
movsx ecx, byte [ebx + esi]
cmp eax, ecx
jne 0x465902
push edi
call fcn.005120b0
cmp esi, eax
pop ecx
jge 0x46599f
push dword [ebp - 0x13c]
inc esi
call fcn.0051344f
cmp eax, 0xffffffff
pop ecx
jne 0x4658d9
mov edi, dword [ebp - 0x13c]
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x124]
push eax
push str.:6:LoadMostLikelyGateways___FAILED:_the_file___s__could_not_be_validated._The_file_has_been_erased_
call fcn.004265da
mov ecx, edi
call fcn.0042d70e
push 0x1306
push str..Network.c
mov edx, 0x530484
lea ecx, [ebp - 0x124]
call fcn.0042d2c6
mov esi, eax
xor edi, edi
add esp, 0x10
cmp esi, edi
jne 0x465966
lea eax, [ebp - 0x124]
push eax
push str.:9:LoadMostLikelyGateways___encountered_a_serious_exception:_Could_not_erase_the_invalid_file___s__
call fcn.004265da
pop ecx
pop ecx
mov dword [0x6c2b04], edi
jmp 0x46580b
push esi
push ebx
lea eax, [ebp - 0x128]
push 4
push eax
mov dword [ebp - 0x128], edi
call fcn.005110f1
add esp, 0x10
cmp eax, ebx
jae 0x465996
lea eax, [ebp - 0x124]
push eax
push str.:9:LoadMostLikelyGateways___encountered_a_serious_exception:_Failed_to_write_zero_entries_while_erasing_the_invalid_file___s__
call fcn.004265da
pop ecx
pop ecx
mov ecx, esi
call fcn.0042d70e
jmp 0x46595b
mov edi, dword [ebp - 0x13c]
push edi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x168]
push 0x10
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
jae 0x4659e6
push edi
call fcn.0051313a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_stTimeStamp__FAILED:_feof_____d
call fcn.004265da
pop ecx
pop ecx
mov ecx, edi
call fcn.0042d70e
and dword [0x6c2b04], 0
jmp 0x46580b
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cx, word [ebp - 0x166]
xor eax, eax
cmp cx, word [ebp - 0x156]
push edi
setne al
push ebx
push 0x10
push 0x6bf864
mov dword [ebp - 0x148], eax
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
push edi
jae 0x465a30
call fcn.0051313a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_g_stLastGatewayScanTime__FAILED:_feof_____d
jmp 0x4659cc
push ebx
push 0x10
push 0x6bf874
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
jae 0x465a6d
push edi
call fcn.0051313a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_g_stLastTimePossibleGatewayFound__FAILED:_feof_____d
call fcn.004265da
pop ecx
pop ecx
mov ecx, edi
call fcn.0042d70e
xor eax, eax
and dword [0x6c2b04], 0
jmp 0x46578d
xor eax, eax
cmp dword [ebp - 0x128], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x138], eax
jle 0x465ce5
xor eax, eax
push edi
push ebx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
push 4
push eax
call fcn.00511c63
push edi
push ebx
mov esi, eax
lea eax, [ebp - 0x130]
push 4
push eax
call fcn.00511c63
push edi
push ebx
add esi, eax
lea eax, [ebp - 0x134]
push 4
push eax
call fcn.00511c63
add esi, eax
add esp, 0x30
cmp esi, 3
jl 0x465c7a
mov ecx, dword [ebp - 0x134]
xor esi, esi
cmp ecx, esi
je 0x465c9e
cmp dword [ebp - 0x130], esi
jl 0x465c9e
cmp dword [ebp - 0x12c], esi
jl 0x465c9e
cmp dword [ebp - 0x130], esi
jne 0x465b19
cmp dword [ebp - 0x12c], esi
je 0x465c9e
sub ecx, 0x309
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x134], ecx
call fcn.00467c17
lea ecx, [ebp - 0x1c]
call fcn.00467c70
cmp eax, dword [ebp - 0x134]
je 0x465b65
lea ecx, [ebp - 0x1c]
call fcn.00467c70
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push str.:9:LoadMostLikelyGateways___encountered_an_IMPOSSIBLE_exception_with_entry__ld:_dwIP___ld_and_parses_to__s_which_parses_back_to__ld_
call fcn.004265da
add esp, 0x14
jmp 0x465bc8
mov esi, dword [0x6bf444]
xor edi, edi
test esi, esi
jle 0x465bee
mov ebx, 0x6bf888
mov ecx, ebx
call fcn.00467c70
cmp dword [ebp - 0x134], eax
mov esi, dword [0x6bf444]
je 0x465b93
inc edi
add ebx, 0x14
cmp edi, esi
jl 0x465b76
cmp edi, 0xa
jge 0x465bc5
cmp edi, esi
jge 0x465beb
mov edx, dword [ebp - 0x12c]
mov eax, edi
shl eax, 2
lea ecx, [eax + 0x6bf950]
cmp edx, dword [ecx]
jle 0x465bb3
mov dword [ecx], edx
mov ecx, dword [ebp - 0x130]
lea eax, [eax + 0x6bf978]
cmp ecx, dword [eax]
jle 0x465bc5
mov dword [eax], ecx
xor ebx, ebx
inc ebx
inc dword [ebp - 0x138]
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x128]
mov edi, dword [ebp - 0x13c]
jl 0x465a87
jmp 0x465ce5
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x148], 0
je 0x465c3d
call fcn.00466228
test eax, eax
je 0x465c37
push 0xa8c
lea ecx, [ebp - 0x1c]
call fcn.00462a7e
test eax, eax
pop ecx
jne 0x465c37
push dword [ebp - 0x130]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x12c]
push eax
push str.:6:FYI:_The_gateway_device_at_address__s_with_an_internet_priority_of__d_and_a_subnet_priority_of__d_can_no_longer_be_pinged_and_so_has_been_removed_from_the_registrar.
call fcn.00426c01
add esp, 0x10
mov dword [ebp - 0x144], ebx
jmp 0x465bc8
mov esi, dword [0x6bf444]
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
imul eax, eax, 0x14
push 0x14
add eax, 0x6bf888
pop ecx
call fcn.004c3b66
mov eax, dword [ebp - 0x12c]
mov dword [esi*4 + 0x6bf950], eax
mov eax, dword [ebp - 0x130]
mov dword [esi*4 + 0x6bf978], eax
inc esi
pop ecx
mov dword [0x6bf444], esi
jmp 0x465bc8
push esi
push dword [ebp - 0x138]
lea eax, [ebp - 0x124]
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_The_file___s__seems_to_be_corrupt.__For_entry__ld__only__ld_elements_could_be_read.
call fcn.004265da
add esp, 0x10
and dword [ebp - 0x140], 0
jmp 0x465ce5
add ecx, 0xfffffcf7
lea eax, [ebp - 0x1c]
call fcn.00467c17
push eax
mov eax, dword [ebp - 0x134]
add eax, 0xfffffcf7
push eax
push dword [ebp - 0x130]
lea eax, [ebp - 0x124]
push dword [ebp - 0x12c]
push dword [ebp - 0x138]
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_The_file___s__seems_to_be_corrupt.__The_elements_of_entry__ld_are:_InternetPriority___ld__SubnetPriority___ld__dwIP___ld___s_:_The_combined_priority_must_be_greater_than_zero_and_the_ip_address_must_be_valid_
call fcn.004265da
add esp, 0x1c
mov dword [ebp - 0x140], esi
mov ecx, edi
call fcn.0042d70e
cmp dword [ebp - 0x144], 0
je 0x465d09
call fcn.0046537e
test eax, eax
jne 0x465d09
push str.:7:SaveMostLikelyGateways___FAILED_within_LoadMostLikelyGateways___while_trying_to_save_cleanup_changes.
call fcn.00426c01
pop ecx
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x465a61
mov dword [0x6c2b00], ebx
jmp 0x465a61