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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10024
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x45f8fc], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x10018], edi
jne 0x41518c
call fcn.00414dd4
jmp 0x415455
mov eax, dword [0x449648]
xor edx, edx
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
shld edx, ecx, 0x10
mov dword [ebp - 0x10024], ebx
shl ecx, 0x10
or ecx, ebx
mov dword [ebp - 0x10010], edx
mov dword [ebp - 0x1000c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10014], ecx
mov ecx, dword [eax + 0x18]
xor eax, eax
inc eax
test ecx, ecx
cmove ecx, eax
xor edx, edx
mov eax, 0x2710
div ecx
xor edx, edx
mov dword [ebp - 0x10020], eax
mov eax, 0x3e8
div ecx
xor edx, edx
mov dword [ebp - 0x1001c], eax
mov eax, 0x1b7740
div ecx
mov edx, esi
mov ecx, edi
mov ebx, eax
call fcn.00414dd4
test eax, eax
jne 0x415455
mov eax, dword [0x449648]
mov edx, 0x5265c00
mov ecx, dword [ebp - 0x10014]
mov edi, dword [eax + 0x10]
mov eax, dword [0x483738]
cmp ecx, eax
ja 0x415227
sub eax, ecx
cmp eax, 0x1388
jle 0x415265
lea ecx, [edi + 0x1388]
cmp ecx, edx
lea eax, [ecx - 0x5265c00]
push 0x461a50
cmovb eax, ecx
mov dword [0x483738], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor cl, cl
call fcn.00415008
push 0x461a50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10014]
mov edx, 0x5265c00
mov eax, dword [0x48373c]
cmp edi, eax
jae 0x4152ab
cmp dword [0x44de78], 0
jne 0x4153c0
mov ecx, dword [ebp - 0x1001c]
add ecx, edi
cmp eax, ecx
jbe 0x415453
cmp ecx, edx
lea eax, [ecx - 0x5265c00]
cmovb eax, ecx
mov dword [0x48373c], eax
mov eax, dword [ebp - 0x10020]
mov dword [0x483740], eax
jmp 0x415453
cmp dword [0x44de78], 0
je 0x4153aa
lea eax, [ecx + 0x1f4]
cmp edi, eax
ja 0x4153aa
cmp byte [0x44de47], 0
jne 0x4153aa
mov eax, dword [ebp - 0x10024]
add eax, esi
cmp eax, 0xfffc
ja 0x4153c0
cmp esi, 0x80
jge 0x4153c0
cmp esi, 0x5a4
ja 0x4153c0
push 0x461a50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1000c]
push esi
push dword [ebp - 0x10018]
mov dword [0x483728], eax
mov eax, dword [ebp - 0x10010]
push 0x483170
mov dword [0x48372c], eax
call fcn.0043a150
movzx eax, word [0x483748]
add esp, 0xc
mov edx, 0x483170
push esi
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push eax
call fcn.00426924
lea ecx, [edi + 0x7d0]
mov dword [0x483730], eax
mov edx, 0x5265c00
lea eax, [ecx - 0x5265c00]
cmp ecx, edx
cmovb eax, ecx
mov ecx, dword [0x483740]
mov dword [0x483738], eax
lea eax, [ecx + edi]
cmp eax, edx
jb 0x415381
sub eax, edx
mov dword [0x48373c], eax
lea eax, [ecx + ecx]
cmp eax, ebx
inc dword [0x483734]
push 0x461a50
cmovb ebx, eax
mov dword [0x483740], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x415453
lea ecx, [edi + 0x3e8]
cmp ecx, edx
lea eax, [ecx - 0x5265c00]
cmovb eax, ecx
mov dword [0x48373c], eax
cmp esi, 0xfff5
jae 0x415453
push esi
push dword [ebp - 0x10018]
lea eax, [ebp - 0x10008]
push eax
call fcn.0043a150
add esp, 0xc
test dword [0x44e4a4], 0x10000
je 0x415453
movzx eax, word [0x483748]
lea edx, [ebp - 0x10008]
mov ebx, dword [0x45f8f0]
push esi
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push eax
call fcn.00426924
mov edi, eax
test edi, edi
je 0x415440
push 0x10
lea ecx, [ebx + 0x1c]
push ecx
push 0
push edi
lea eax, [ebp - 0x10008]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x415442
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
inc dword [ebx + 0x48]
xor edi, edi
test edi, edi
je 0x415453
lea edx, [esi + 0x1f]
mov ecx, 0x461c14
call fcn.0040eb7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret