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

Disassembly:
mov eax, 0x4118
call fcn.0044e950
mov eax, dword [0x480810]
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.0044cd20
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov edi, ebp
call fcn.00412680
mov edx, dword [esp + 0x8a0]
push edx
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.00411c80
test eax, eax
je 0x4124a0
lea esp, [esp]
push 0x2800
lea eax, [esp + 0x191c]
push 0
push eax
call fcn.0044cd20
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.00412ab0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412320
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 0x4124a0
push 0xc6c
lea ecx, [esp + 0x8ac]
push 0
push ecx
call fcn.0044cd20
add esp, 0xc
push 0x400
lea edx, [esp + 0x151c]
push 0
push edx
call fcn.0044cd20
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x8ac]
push ecx
lea ecx, [esp + 0x1520]
mov edx, ebx
call fcn.00411d10
push 0x1400
lea esi, [ebx + 4]
push 0
push esi
call fcn.0044cd20
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 0x4123b0
sub eax, edx
cmp eax, 8
jbe 0x4123f0
lea eax, [esp + 0x1110]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4123d0
sub eax, edx
add eax, 0xfffffff8
push eax
lea edx, [esp + 0x1114]
push edx
push esi
call fcn.004491b0
add esp, 0xc
lea eax, [esp + 0xd10]
push 0x46df44
push eax
call fcn.0045c505
add esp, 8
test eax, eax
je 0x4124a7
cmp dword [esp + 0x1510], 0xc8
je 0x4124c4
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 0x412424
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 0x412440
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 0x4124a7
push 0x884
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0044cd20
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov edi, ebp
call fcn.00412680
mov edx, dword [esp + 0x8a0]
push edx
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.00411c80
test eax, eax
jne 0x4122e0
mov eax, 0x65
jmp 0x4124ee
cmp dword [esp + 0x1510], 0xc8
je 0x4124c4
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x65
jmp 0x4124ee
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x1520]
call fcn.004125b0
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.00448d99
add esp, 0x4118
ret 8