Function at 0x407c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0041f230
mov esi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 0x1014]
mov ecx, dword [ebp + 8]
push ecx
push str._s:_d
mov dword [ebp - 0x1044], eax
push eax
call sym._sprintf_1
lea eax, [ebp - 0x1014]
mov dword [esp], eax
call dbg.adb_connect
add esp, 0x10
mov dword [ebp - 0x1028], eax
test eax, eax
js 0x407e82
sub esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10000
push 4
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x1028]
push eax
call sub.WS2_32.DLL_setsockopt
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x102c], esi
test eax, eax
jne 0x407e09
test esi, esi
jle 0x407d6f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0xc]
add eax, 0x20
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x1040], eax
jmp 0x407cd6
test esi, esi
jle 0x407d6f
mov eax, dword [ebp - 0x1024]
add eax, edi
mov dword [ebp - 0x1024], eax
mov edi, esi
cmp esi, 0x10000
jle 0x407ce5
mov edi, 0x10000
push eax
push edi
mov eax, dword [ebp - 0x1024]
push eax
mov ebx, dword [ebp - 0x1028]
push ebx
call dbg.writex
add esp, 0x10
test eax, eax
jne 0x407dd0
mov edx, dword [ebp + 0x14]
sub esi, edi
test edx, edx
je 0x407cc0
mov ebx, 0x64
mov eax, esi
imul ebx
sub esp, 0x10
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], edx
mov eax, dword [ebp - 0x102c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1034]
push eax
mov eax, dword [ebp - 0x1038]
push eax
call sym.___divdi3
add esp, 0x1c
sub ebx, eax
push ebx
mov eax, dword [ebp + 8]
push eax
push str.sending:__s__4d_______r
call sym._printf_1
pop eax
mov eax, dword [ebp - 0x1040]
push eax
call sym._fflush
add esp, 0x10
test esi, esi
jg 0x407cc8
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x407e2a
lea edx, [ebp - 0x1014]
push esi
push 4
push edx
mov ebx, dword [ebp - 0x1028]
push ebx
call dbg.readx
add esp, 0x10
test eax, eax
jne 0x407e3f
cld
mov edi, 0x4296c2
mov ecx, 4
mov esi, dword [ebp - 0x1044]
repe cmpsb byte [esi], byte es:[edi]
jne 0x407e6c
sub esp, 0xc
mov eax, dword [ebp - 0x1028]
push eax
call dbg.adb_close
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
mov ecx, dword [ebp - 0x1028]
push ecx
call dbg.adb_status
call dbg.adb_error
add esp, 0xc
push eax
push str._failed_to_write_data__s__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sym._fprintf_5
or eax, 0xffffffff
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
push 0x3a
mov eax, dword [ebp + 8]
push eax
call sym._strrchr
add esp, 0x10
test eax, eax
je 0x407c9b
inc eax
mov dword [ebp + 8], eax
jmp 0x407c9b
sub esp, 0xc
push 0x4296a4
call sym._printf_1
add esp, 0x10
jmp 0x407d7a
push ecx
push ecx
push str._error_reading_response__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sym._fprintf_5
pop eax
mov eax, dword [ebp - 0x1028]
push eax
call dbg.adb_close
or eax, 0xffffffff
add esp, 0x10
jmp 0x407dc8
lea eax, [ebp - 0x1014]
mov byte [ebp - 0x1010], 0
push edx
push eax
push str._error_response__s__n
jmp 0x407e46
call dbg.adb_error
push edx
push eax
push 0x42965f
jmp 0x407ded