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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x5f2e68]
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.005306b0
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 0x46e2f9
cmp dword [0x6f0b48], esi
je 0x46e2f9
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
cmp dword [0x6f0b4c], esi
je 0x46e327
call fcn.004fa8e4
mov edi, eax
jmp 0x46e31f
call fcn.004fa8e4
sub eax, edi
cmp eax, 0x2710
jae 0x46e327
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6f0b4c], esi
jne 0x46e30a
push str.GatMem.sat
xor ebx, ebx
push esi
inc ebx
push esi
mov dword [0x6f0b4c], ebx
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x124]
push 0x553c34
push eax
call fcn.00531b2f
add esp, 0x10
lea edi, [ebp - 0x124]
call fcn.00432263
test eax, eax
jne 0x46e36f
mov dword [0x6f0b4c], esi
xor eax, eax
jmp 0x46e2ea
push 0x12d3
push str..Network.c
mov edx, 0x54f4b8
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x140], ebx
call fcn.00434df1
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp - 0x13c], edi
jne 0x46e3b2
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.0042b70b
pop ecx
pop ecx
jmp 0x46e362
push edi
push ebx
lea eax, [ebp - 0x128]
push 4
push eax
call fcn.00530e93
add esp, 0x10
cmp eax, ebx
jae 0x46e3e7
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.0042b70b
pop ecx
pop ecx
mov ecx, edi
call fcn.00435239
jmp 0x46e362
cmp dword [ebp - 0x128], 0xa
jle 0x46e418
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.0042bd38
add esp, 0x14
mov dword [ebp - 0x128], 0xa
cmp dword [ebp - 0x128], esi
jle 0x46e3db
push edi
call fcn.0053256f
cmp eax, 0xffffffff
pop ecx
je 0x46e468
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 0x46e45f
push edi
call fcn.00530f70
cmp esi, eax
pop ecx
jge 0x46e4fc
push dword [ebp - 0x13c]
inc esi
call fcn.0053256f
cmp eax, 0xffffffff
pop ecx
jne 0x46e436
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.0042b70b
mov ecx, edi
call fcn.00435239
push 0x1306
push str..Network.c
mov edx, 0x54f4b4
lea ecx, [ebp - 0x124]
call fcn.00434df1
mov esi, eax
xor edi, edi
add esp, 0x10
cmp esi, edi
jne 0x46e4c3
lea eax, [ebp - 0x124]
push eax
push str.:9:LoadMostLikelyGateways___encountered_a_serious_exception:_Could_not_erase_the_invalid_file___s__
call fcn.0042b70b
pop ecx
pop ecx
mov dword [0x6f0b4c], edi
jmp 0x46e368
push esi
push ebx
lea eax, [ebp - 0x128]
push 4
push eax
mov dword [ebp - 0x128], edi
call fcn.00531aad
add esp, 0x10
cmp eax, ebx
jae 0x46e4f3
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.0042b70b
pop ecx
pop ecx
mov ecx, esi
call fcn.00435239
jmp 0x46e4b8
mov edi, dword [ebp - 0x13c]
push edi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x168]
push 0x10
push eax
call fcn.00530e93
add esp, 0x10
cmp eax, ebx
jae 0x46e543
push edi
call fcn.0053225a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_stTimeStamp__FAILED:_feof_____d
call fcn.0042b70b
pop ecx
pop ecx
mov ecx, edi
call fcn.00435239
and dword [0x6f0b4c], 0
jmp 0x46e368
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 0x6ed8ac
mov dword [ebp - 0x148], eax
call fcn.00530e93
add esp, 0x10
cmp eax, ebx
push edi
jae 0x46e58d
call fcn.0053225a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_g_stLastGatewayScanTime__FAILED:_feof_____d
jmp 0x46e529
push ebx
push 0x10
push 0x6ed8bc
call fcn.00530e93
add esp, 0x10
cmp eax, ebx
jae 0x46e5ca
push edi
call fcn.0053225a
pop ecx
push eax
push str.:8:LoadMostLikelyGateways___FAILED:_fread_g_stLastTimePossibleGatewayFound__FAILED:_feof_____d
call fcn.0042b70b
pop ecx
pop ecx
mov ecx, edi
call fcn.00435239
xor eax, eax
and dword [0x6f0b4c], 0
jmp 0x46e2ea
xor eax, eax
cmp dword [ebp - 0x128], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x138], eax
jle 0x46e842
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.00530e93
push edi
push ebx
mov esi, eax
lea eax, [ebp - 0x130]
push 4
push eax
call fcn.00530e93
push edi
push ebx
add esi, eax
lea eax, [ebp - 0x134]
push 4
push eax
call fcn.00530e93
add esi, eax
add esp, 0x30
cmp esi, 3
jl 0x46e7d7
mov ecx, dword [ebp - 0x134]
xor esi, esi
cmp ecx, esi
je 0x46e7fb
cmp dword [ebp - 0x130], esi
jl 0x46e7fb
cmp dword [ebp - 0x12c], esi
jl 0x46e7fb
cmp dword [ebp - 0x130], esi
jne 0x46e676
cmp dword [ebp - 0x12c], esi
je 0x46e7fb
sub ecx, 0x309
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x134], ecx
call fcn.0047077a
lea ecx, [ebp - 0x1c]
call fcn.004707d3
cmp eax, dword [ebp - 0x134]
je 0x46e6c2
lea ecx, [ebp - 0x1c]
call fcn.004707d3
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.0042b70b
add esp, 0x14
jmp 0x46e725
mov esi, dword [0x6ed48c]
xor edi, edi
test esi, esi
jle 0x46e74b
mov ebx, 0x6ed8d0
mov ecx, ebx
call fcn.004707d3
cmp dword [ebp - 0x134], eax
mov esi, dword [0x6ed48c]
je 0x46e6f0
inc edi
add ebx, 0x14
cmp edi, esi
jl 0x46e6d3
cmp edi, 0xa
jge 0x46e722
cmp edi, esi
jge 0x46e748
mov edx, dword [ebp - 0x12c]
mov eax, edi
shl eax, 2
lea ecx, [eax + 0x6ed998]
cmp edx, dword [ecx]
jle 0x46e710
mov dword [ecx], edx
mov ecx, dword [ebp - 0x130]
lea eax, [eax + 0x6ed9c0]
cmp ecx, dword [eax]
jle 0x46e722
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 0x46e5e4
jmp 0x46e842
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x148], 0
je 0x46e79a
call fcn.0046ed85
test eax, eax
je 0x46e794
push 0xa8c
lea ecx, [ebp - 0x1c]
call fcn.0046b3fc
test eax, eax
pop ecx
jne 0x46e794
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.0042bd38
add esp, 0x10
mov dword [ebp - 0x144], ebx
jmp 0x46e725
mov esi, dword [0x6ed48c]
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
imul eax, eax, 0x14
push 0x14
add eax, 0x6ed8d0
pop ecx
call fcn.004ccc3f
mov eax, dword [ebp - 0x12c]
mov dword [esi*4 + 0x6ed998], eax
mov eax, dword [ebp - 0x130]
mov dword [esi*4 + 0x6ed9c0], eax
inc esi
pop ecx
mov dword [0x6ed48c], esi
jmp 0x46e725
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.0042b70b
add esp, 0x10
and dword [ebp - 0x140], 0
jmp 0x46e842
add ecx, 0xfffffcf7
lea eax, [ebp - 0x1c]
call fcn.0047077a
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.0042b70b
add esp, 0x1c
mov dword [ebp - 0x140], esi
mov ecx, edi
call fcn.00435239
cmp dword [ebp - 0x144], 0
je 0x46e866
call fcn.0046dedb
test eax, eax
jne 0x46e866
push str.:7:SaveMostLikelyGateways___FAILED_within_LoadMostLikelyGateways___while_trying_to_save_cleanup_changes.
call fcn.0042bd38
pop ecx
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x46e5be
mov dword [0x6f0b48], ebx
jmp 0x46e5be