Function at 0x409bd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov eax, 0x104c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004b12b0
sub esp, eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 4], 0x4c4277
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004096f0
lea eax, [ebp - 0x1018]
mov dword [esp], eax
call fcn.0040de20
test eax, eax
mov dword [ebp - 0x1034], eax
js 0x409e82
lea eax, [ebp - 0x101c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x101c], 0x10000
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x1040], ebx
mov dword [ebp - 0x103c], 0
sub esp, 0x14
test ebx, ebx
mov dword [ebp - 0x101c], eax
jg 0x409c8a
jmp 0x409d4e
test edi, edi
jle 0x409d4e
mov eax, dword [ebp - 0x1034]
cmp ebx, 0x10000
mov edx, 0x10000
cmovle edx, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x1030], edx
call fcn.004076c0
mov edx, dword [ebp - 0x1030]
test eax, eax
jne 0x409dc1
mov eax, dword [ebp + 0x18]
mov edi, ebx
add esi, edx
sub edi, edx
mov ebx, edi
test eax, eax
je 0x409c82
mov ecx, 0x64
mov eax, edi
imul ecx
mov dword [ebp - 0x1038], ecx
mov dword [ebp - 0x1030], eax
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x102c], edx
mov edx, dword [ebp - 0x103c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1030]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x102c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004b12e0
mov ecx, 0x64
mov dword [esp], str.sending:__s__4d_______r
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.00409720
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
test edi, edi
jg 0x409c8a
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x409e00
lea eax, [ebp - 0x1018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1034]
mov dword [esp + 8], 4
mov dword [esp], eax
call fcn.00407390
test eax, eax
jne 0x409e11
lea eax, [ebp - 0x1018]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4c42d6
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
mov ebx, eax
jne 0x409e41
mov eax, dword [ebp - 0x1034]
mov dword [esp], eax
call fcn.00419a30
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1034]
mov dword [esp], eax
call fcn.0040d510
call fcn.0040d500
mov dword [esp + 4], str._failed_to_write_data__s__n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, 0xffffffff
add eax, 0x40
mov dword [esp], eax
call fcn.00408e50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4c42b8
call fcn.00409720
jmp 0x409d59
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, 0xffffffff
mov dword [esp + 4], str._error_reading_response__n
add eax, 0x40
mov dword [esp], eax
call fcn.00408e50
mov eax, dword [ebp - 0x1034]
mov dword [esp], eax
call fcn.00419a30
jmp 0x409db7
lea eax, [ebp - 0x1018]
mov ebx, 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str._error_response__s__n
mov byte [ebp - 0x1014], 0
add eax, 0x40
mov dword [esp], eax
call fcn.00408e50
mov eax, dword [ebp - 0x1034]
mov dword [esp], eax
call fcn.00419a30
jmp 0x409db7
call fcn.0040d500
mov dword [esp + 4], 0x4c426c
mov dword [esp + 8], eax
jmp 0x409de0