Function at 0x418270
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x4118
call fcn.0045a270
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x4110], eax
mov eax, dword [esp + 0x4120]
push ebp
mov ebp, dword [esp + 0x4120]
push esi
push edi
mov dword [esp + 0x18], eax
xor eax, eax
push 0x884
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
call fcn.00458160
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov edi, ebp
call fcn.00418690
mov edx, dword [esp + 0x8a0]
push edx
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.00417c90
test eax, eax
je 0x4184b0
lea esp, [esp]
push 0x2800
lea eax, [esp + 0x191c]
push 0
push eax
call fcn.00458160
mov edi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push edi
push ebx
lea esi, [esp + 0x1924]
lea eax, [esp + 0xac]
call fcn.00418ac0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418330
sub eax, edx
push 0
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x1920]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4184b0
push 0xc6c
lea ecx, [esp + 0x8ac]
push 0
push ecx
call fcn.00458160
add esp, 0xc
push 0x400
lea edx, [esp + 0x151c]
push 0
push edx
call fcn.00458160
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x8ac]
push ecx
lea ecx, [esp + 0x1520]
mov edx, ebx
call fcn.00417d20
push 0x1400
lea esi, [ebx + 4]
push 0
push esi
call fcn.00458160
lea eax, [esp + 0x111c]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4183c0
sub eax, edx
cmp eax, 8
jbe 0x418400
lea eax, [esp + 0x1110]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4183e0
sub eax, edx
add eax, 0xfffffff8
push eax
lea edx, [esp + 0x1114]
push edx
push esi
call fcn.00454500
add esp, 0xc
lea eax, [esp + 0xd10]
push 0x47b3d4
push eax
call fcn.00468095
add esp, 8
test eax, eax
je 0x4184b7
cmp dword [esp + 0x1510], 0xc8
je 0x4184d4
mov edx, edi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x418434
lea eax, [esp + 0xd10]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x418450
mov esi, dword [esp + 0xc]
mov edx, dword [ebx]
add esi, 1
push edx
mov dword [esp + 0x10], esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xa
je 0x4184b7
push 0x884
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00458160
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov edi, ebp
call fcn.00418690
mov edx, dword [esp + 0x8a0]
push edx
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.00417c90
test eax, eax
jne 0x4182f0
mov eax, 0x65
jmp 0x4184fe
cmp dword [esp + 0x1510], 0xc8
je 0x4184d4
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x65
jmp 0x4184fe
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x1520]
call fcn.004185c0
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x64
mov ecx, dword [esp + 0x411c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004540ed
add esp, 0x4118
ret 8