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

Disassembly:
mov eax, dword [0x659958]
sub esp, 0x2a0
cmp eax, 2
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jle 0x4769e8
call fcn.004764d0
test eax, eax
jne 0x4768e8
mov ecx, 7
lea edi, [esp + 0x31]
mov byte [esp + 0x30], al
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp]
push eax
call fcn.00471970
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
add esp, 4
push eax
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471970
add esp, 4
push eax
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
push edx
push str._sbin_ifconfig_eth0__s_netmask__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
test eax, eax
jl 0x4767af
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x10
jl 0x476830
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x24
jl 0x4767d1
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x34
jl 0x476830
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x4c
jge 0x476830
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x5a
jl 0x476804
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x6e
jl 0x476830
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x6e
jl 0x4768e8
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0xe6
jge 0x4768e8
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x63
je 0x4768e8
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x66
je 0x4768e8
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x6e
je 0x4768e8
call fcn.0047de30
mov ecx, eax
call fcn.0047e5d0
cmp eax, 0x70
je 0x4768e8
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 4]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call fcn.00471970
add esp, 4
push eax
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push str.route_add_default_gw__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xb0]
mov ecx, ebp
push eax
call fcn.004765a0
lea ecx, [esp + 0xb0]
test ecx, ecx
je 0x4769e8
mov al, byte [esp + 0xb0]
test al, al
je 0x4769e8
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1b1]
mov byte [esp + 0x1b0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x56c118
push str._etc_resolv.conf
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
mov esi, eax
add esp, 8
test esi, esi
je 0x476988
push esi
push pe_nt_image_headers32
lea edx, [esp + 0x1b8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x1b0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4769aa
cmp byte [eax], 0
jne 0x4769e8
push 0x56c2a4
push str._etc_resolv.conf
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4769e8
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0xb4]
push ecx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call ebx
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret