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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
movzx eax, byte [0x44b43d]
cmp eax, 1
jne 0x41c1c1
mov ecx, dword [ebp + 8]
mov edx, dword [0x4415b8]
mov dword [ecx + 0x514], edx
jmp 0x41c1e5
movzx eax, byte [0x44b43d]
cmp eax, 2
jne 0x41c1de
mov ecx, dword [ebp + 8]
mov edx, dword [0x4415b4]
mov dword [ecx + 0x514], edx
jmp 0x41c1e5
xor eax, eax
jmp 0x41c4d6
push 0x43
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x512], ax
mov edx, 2
mov eax, dword [ebp + 8]
mov word [eax + 0x510], dx
mov ecx, dword [ebp + 8]
add ecx, 0xf4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0xff
jge 0x41c254
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x538]
jae 0x41c254
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x35
jne 0x41c241
mov edx, dword [ebp - 4]
mov byte [edx + 2], 8
jmp 0x41c254
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 2]
mov dword [ebp - 4], eax
jmp 0x41c212
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x538]
jb 0x41c2c9
mov byte [ebp - 0x110], 0x35
mov byte [ebp - 0x10f], 1
mov byte [ebp - 0x10e], 8
movzx eax, byte [ebp - 0x10f]
add eax, 2
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x538]
push eax
call fcn.00406dd0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x538]
add edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x538], edx
movzx ecx, byte [ebp - 0x10f]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x538]
mov eax, dword [ebp + 8]
mov dword [eax + 0x538], ecx
mov byte [ebp - 0x110], 0xfd
mov byte [ebp - 0x10f], 4
mov ecx, dword [0x442014]
push ecx
lea edx, [ebp - 0x10e]
push edx
call fcn.0041a0b0
add esp, 8
movzx eax, byte [ebp - 0x10f]
add eax, 2
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x538]
push eax
call fcn.00406dd0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x538]
add edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x538], edx
movzx ecx, byte [ebp - 0x10f]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x538]
mov eax, dword [ebp + 8]
mov dword [eax + 0x538], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x538]
mov byte [edx], 0xff
mov eax, dword [ebp + 8]
add eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x538]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x50c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x50c], edx
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 1
call fcn.00409828
mov dword [eax], 0
push 0x10
mov edx, dword [ebp + 8]
add edx, 0x510
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50c]
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push edx
mov eax, dword [0x4409d8]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00409828
mov dword [eax], esi
call fcn.00409828
cmp dword [eax], 0
jne 0x41c3e5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50c], 0
jg 0x41c44d
movzx eax, byte [0x44b43b]
test eax, eax
je 0x41c441
movzx ecx, byte [0x44b43d]
cmp ecx, 1
jne 0x41c418
call fcn.00409828
mov edx, dword [eax]
push edx
push 0x438de0
push 0x44bd18
call fcn.00407379
add esp, 0xc
jmp 0x41c432
call fcn.00409828
mov eax, dword [eax]
push eax
push 0x438e14
push 0x44bd18
call fcn.00407379
add esp, 0xc
push 2
push 0x44bd18
call fcn.0041b050
add esp, 8
xor eax, eax
jmp 0x41c4d6
movzx ecx, byte [0x44b43b]
cmp ecx, 2
jne 0x41c4d0
movzx edx, byte [0x44b43d]
cmp edx, 1
jne 0x41c494
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x53c]
mov edx, dword [ecx + 0x1c]
push edx
push 0x43fd60
call fcn.004198c0
add esp, 8
push eax
push 0x438e44
push 0x44bd18
call fcn.00407379
add esp, 0xc
jmp 0x41c4c1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x53c]
mov edx, dword [ecx + 0x1c]
push edx
push 0x43fd60
call fcn.004198c0
add esp, 8
push eax
push 0x438e78
push 0x44bd18
call fcn.00407379
add esp, 0xc
push 2
push 0x44bd18
call fcn.0041b050
add esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret