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

Disassembly:
push 0xb4
mov eax, 0x59a561
call fcn.0055d756
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x42e804
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf4]
mov byte [ebp - 0x59], 1
mov byte [ebp - 0x5a], 0
test eax, eax
jg 0x42e4cc
cmp dword [esi + 0x118], 0
je 0x42e4d0
mov byte [ebp - 0x5a], 1
and dword [ebp - 0x60], 0
test eax, eax
jle 0x42e531
push 0
push dword [esi + 0xf4]
push dword [esi + 0x100]
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test edi, edi
jle 0x42e592
sub dword [esi + 0xf4], edi
mov eax, dword [esi + 0xf4]
add dword [ebp - 0x60], edi
test eax, eax
jle 0x42e528
mov ecx, dword [esi + 0x100]
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.005599e0
add esp, 0xc
cmp dword [esi + 0xf4], 0
jg 0x42e4d8
cmp dword [esi + 0x118], 0
je 0x42e7d6
lea ecx, [ebp - 0x9c]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x108]
call fcn.00414071
mov ecx, dword [eax]
test ecx, ecx
je 0x42e560
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e560
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
lea ecx, [esi + 0x108]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], edi
push eax
call fcn.00414089
cmp edi, dword [eax + 8]
setne al
test al, al
je 0x42e7d6
test ebx, ebx
jne 0x42e647
xor eax, eax
jmp 0x42e649
je 0x42e5a9
cmp edi, 0xffffffff
jne 0x42e7d6
cmp ebx, 0x2733
je 0x42e7d6
lea ecx, [ebp - 0x34]
call fcn.00404e82
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.00404a5c
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407101
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.004040cf
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.004040cf
cmp byte [esi + 0x61], 0
jne 0x42e632
cmp dword [esi + 0x14], 0
je 0x42e632
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004053ac
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004040cf
jmp 0x42e7d6
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov edi, dword [eax + ecx*4]
jmp 0x42e689
mov eax, dword [edi]
add eax, dword [edi + 4]
push 0
push dword [edi + 8]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], ecx
test eax, eax
jle 0x42e694
add dword [edi + 4], eax
sub dword [edi + 8], eax
add dword [ebp - 0x60], eax
cmp dword [edi + 8], 0
jg 0x42e657
jmp 0x42e747
je 0x42e6ac
cmp eax, 0xffffffff
jne 0x42e6a3
cmp ecx, 0x2733
jne 0x42e6ac
mov byte [ebp - 0x59], 0
jmp 0x42e747
lea ecx, [ebp - 0x58]
call fcn.00404e82
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 1
call fcn.00404a5c
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407101
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.004040cf
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004040cf
cmp byte [esi + 0x61], 0
jne 0x42e733
cmp dword [esi + 0x14], 0
je 0x42e733
sub esp, 0x24
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.004053ac
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
push 0
push 1
mov byte [ebp - 0x59], 0
call fcn.004040cf
cmp dword [edi + 8], 0
jne 0x42e7b5
test ebx, ebx
jne 0x42e755
xor eax, eax
jmp 0x42e757
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov edi, dword [ebp - 0x68]
dec ecx
mov eax, dword [eax + 4]
and ecx, edi
mov eax, dword [eax + ecx*4]
push dword [eax]
call fcn.00431987
push ecx
push ecx
mov ecx, esp
and dword [ecx], 0
and dword [ecx + 4], 0
test ebx, ebx
je 0x42e786
mov eax, dword [ebx]
test eax, eax
je 0x42e786
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x84]
mov dword [ecx + 8], edi
push eax
lea ecx, [esi + 0x108]
call fcn.0042ede0
mov ecx, dword [eax]
cmp ebx, ecx
je 0x42e7ad
test ecx, ecx
je 0x42e7ad
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e7ad
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
mov dword [ebp - 0x68], edi
jmp 0x42e7b8
mov edi, dword [ebp - 0x68]
cmp byte [ebp - 0x59], 0
je 0x42e7d6
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x108]
call fcn.00414089
cmp edi, dword [eax + 8]
jne 0x42e583
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5a], 0
je 0x42e804
cmp dword [esi + 0xf4], 0
jne 0x42e804
cmp dword [esi + 0x118], 0
jne 0x42e804
push dword [ebp - 0x60]
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
call fcn.0055d705
ret