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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov edi, 0x4c0314
mov eax, 0x4c0848
call fcn.00479eb8
mov eax, ebx
call fcn.00413fc8
test al, al
jne 0x4135d0
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4138a8
mov word [ebp - 0x24], 0x14
lea eax, [ebp - 4]
xor edx, edx
call fcn.00488d00
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 8
test esi, esi
jne 0x413630
mov word [ebp - 0x24], 0x20
lea edx, [edi + 0x32]
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [ebp - 0x18]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00488e00
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
lea ecx, [edi + 0x62]
push ecx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
jmp 0x413674
mov word [ebp - 0x24], 0x2c
lea edx, [edi + 0x66]
lea eax, [ebp - 0x10]
call fcn.00488be4
inc dword [ebp - 0x18]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00488e00
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
lea ecx, [edi + 0x99]
push ecx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004138b0
lea edx, [edi + 0x9e]
push edx
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
mov ecx, 0x50
mov edx, dword [ebx + 8]
mov eax, ebx
call fcn.00414028
test al, al
jne 0x41375b
call sub.WSOCK32.DLL_WSAGetLastError
push eax
lea eax, [edi + 0xaf]
push eax
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 0xc
push 0xea60
call sub.KERNEL32.DLL_Sleep
lea ecx, [edi + 0xc1]
push ecx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
mov ecx, 0x50
mov edx, dword [ebx + 8]
mov eax, ebx
call fcn.00414028
test al, al
jne 0x41375b
lea eax, [ebx + 0x18]
cmp dword [eax], 0
je 0x413705
mov edx, dword [eax]
jmp 0x41370b
lea edx, [edi + 0xcf]
push edx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
call sub.WSOCK32.DLL_WSAGetLastError
push eax
lea ecx, [edi + 0xd0]
push ecx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 0xc
mov eax, ebx
call fcn.00413ffc
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x4138a8
lea eax, [edi + 0xe2]
push eax
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
mov word [ebp - 0x24], 0x38
add esp, 8
mov ecx, dword [ebx + 0x10]
xor eax, eax
lea edx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push edx
mov eax, ebx
inc dword [ebp - 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
call fcn.00414168
mov word [ebp - 0x24], 8
push 0
cmp dword [ebp - 8], 0
je 0x4137aa
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 4]
jmp 0x4137ac
xor eax, eax
push eax
cmp dword [ebp - 8], 0
je 0x4137b8
mov edx, dword [ebp - 8]
jmp 0x4137be
lea edx, [edi + 0xef]
push edx
mov eax, dword [ebx]
push eax
call sub.WSOCK32.DLL_send
inc eax
jne 0x41381b
call sub.WSOCK32.DLL_WSAGetLastError
push eax
lea ecx, [edi + 0xf0]
push ecx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 0xc
mov eax, ebx
call fcn.00413ffc
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x4138a8
test esi, esi
jne 0x41386b
lea eax, [edi + 0xff]
push eax
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 8
xor edx, edx
mov eax, ebx
call fcn.00414448
test al, al
je 0x41384f
mov byte [ebx + 0x34], 0
mov eax, ebx
call fcn.00414744
jmp 0x413877
mov byte [ebx + 0x34], 1
lea edx, [edi + 0x10e]
push edx
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
jmp 0x413877
mov edx, 1
mov eax, ebx
call fcn.00414448
mov eax, ebx
call fcn.00413ffc
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret