Function at 0x481954
Capabilities:
Read file on windows
Set socket configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x48195d
mov eax, dword [ebp - 4]
add esp, 0xffffff78
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
lea ebx, [ebp - 0x1c]
lea esi, [ebp - 0x802c]
mov edi, 0x48df60
mov dword [ebp - 0x8038], 0xc
xor eax, eax
mov dword [ebp - 0x8034], eax
mov dword [ebp - 0x8030], 0xffffffff
push 0
lea eax, [ebp - 0x8038]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406d78
push 0
lea eax, [ebp - 0x8038]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406d78
lea eax, [ebp - 0x807c]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x8040], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x803c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8044], eax
mov dword [ebp - 0x8050], 0x101
mov word [ebp - 0x804c], 0
lea eax, [ebp - 0x808c]
push eax
lea eax, [ebp - 0x807c]
push eax
push 0
push 0
push 0x10
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.00406d80
mov eax, dword [ebp - 0x18]
push eax
call fcn.00406d20
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406d20
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x2c]
push eax
push 0x8004667e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
mov dword [ebp - 0x28], 1
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetNamedPipeHandleState
xor edx, edx
push ebp
push 0x481b3d
push dword fs:[edx]
mov dword fs:[edx], esp
jmp 0x481b20
push 5
call fcn.0040e100
mov eax, dword [0x48e3d0]
mov eax, dword [eax]
call fcn.00455cf8
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x808c]
push eax
call fcn.00406e78
cmp dword [ebp - 0x24], 0x103
jne 0x481b33
push 0
push ebx
mov eax, dword [edi]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebx], 0
jbe 0x481aec
jmp 0x481ad7
push 5
call fcn.0040e100
mov edx, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov ecx, dword [ebx]
call fcn.0045bf08
inc eax
je 0x481ad0
mov eax, dword [ebx]
cmp eax, dword [edi]
jae 0x481ab9
push 5
call fcn.0040e100
mov edx, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov ecx, dword [edi]
call fcn.0045c090
test eax, eax
jbe 0x481b20
push 0
lea edx, [ebp - 0x20]
push edx
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp byte [eax + 8], 0
jne 0x481a8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481b47
mov eax, dword [0x48e3b8]
mov byte [eax], 0
xor eax, eax
push ebp
push 0x481b8e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x808c]
push eax
call fcn.00406e78
cmp dword [ebp - 0x24], 0x103
jne 0x481b84
push 0
mov eax, dword [ebp - 0x808c]
push eax
call fcn.004070c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481b98
mov eax, dword [ebp - 0x10]
push eax
call fcn.00406d20
mov eax, dword [ebp - 0x14]
push eax
call fcn.00406d20
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x8004667e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret