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

Disassembly:
mov eax, dword [0x67a7f0]
sub esp, 0x2a0
cmp eax, 2
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jle 0x47f317
call fcn.0047edb0
test eax, eax
jne 0x47f217
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 [ebx]
push eax
call fcn.00479c80
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
add esp, 4
push eax
call ebp
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 [ebx + 8]
push ecx
call fcn.00479c80
add esp, 4
push eax
call ebp
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.00488f40
mov ecx, eax
call fcn.004752c0
test eax, eax
jl 0x47f0de
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x10
jl 0x47f15f
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x24
jl 0x47f100
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x34
jl 0x47f15f
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x4c
jge 0x47f15f
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x5a
jl 0x47f133
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x6e
jl 0x47f15f
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x6e
jl 0x47f217
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe6
jge 0x47f217
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x63
je 0x47f217
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x66
je 0x47f217
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x6e
je 0x47f217
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x70
je 0x47f217
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call fcn.00479c80
add esp, 4
push eax
call ebp
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, ebx
push eax
call fcn.0047eed0
lea ecx, [esp + 0xb0]
test ecx, ecx
je 0x47f317
mov al, byte [esp + 0xb0]
test al, al
je 0x47f317
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 0x585050
push str._etc_resolv.conf
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
mov esi, eax
add esp, 8
test esi, esi
je 0x47f2b7
push esi
push 0x100
lea edx, [esp + 0x1b8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call ebp
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 0x47f2d9
cmp byte [eax], 0
jne 0x47f317
push 0x5851dc
push str._etc_resolv.conf
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x47f317
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 ebp
add esp, 0x14
mov ecx, ebx
call fcn.0047ee00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret