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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x103]
xor ebx, ebx
mov dword [ebp - 0x90c], edi
push 0x7f
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0055e280
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], bl
push ebx
push eax
call fcn.0055e280
mov ebx, dword [edi + 0x134]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x910], eax
mov dword [ebp - 0x908], ebx
mov eax, dword [ebx + 0x1eb8]
sub eax, dword [ebx + 0x1eb4]
add eax, 2
push eax
lea eax, [ebx + 0x1cb4]
push eax
push 0x3c
push edi
call fcn.0054e029
mov eax, dword [ebx + 0x1eb4]
add esp, 0x28
mov cl, byte [eax]
inc eax
mov dword [ebx + 0x1eb4], eax
cmp cl, 0x18
je 0x54ebab
cmp cl, 0x23
je 0x54eb8d
cmp cl, 0x27
jne 0x54ec40
push 0
push 0x27
push 0xfa
mov ebx, 0xff
lea eax, [ebp - 0x904]
push ebx
push str._c_c_c_c
push 0x800
push eax
call fcn.0053b624
mov eax, dword [ebp - 0x908]
add esp, 0x1c
mov eax, dword [eax + 0x1cb0]
push 4
pop esi
test eax, eax
je 0x54eb2b
mov edi, eax
mov ebx, 0x800
push dword [edi]
call fcn.0056c2b0
inc eax
add eax, esi
pop ecx
cmp eax, 0x7fa
jae 0x54eb15
xor eax, eax
mov byte [ebp - 0x84], al
mov word [ebp - 0x908], ax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127____1____127s
push dword [edi]
call fcn.00524d6e
add esp, 0x14
cmp eax, 1
jne 0x54eae1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, ebx
sub eax, esi
push str._c_s
push eax
lea eax, [ebp - 0x904]
add eax, esi
push eax
call fcn.0053b624
add esp, 0x14
jmp 0x54eb13
cmp eax, 2
jl 0x54eb15
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, ebx
sub eax, esi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, esi
push eax
call fcn.0053b624
add esp, 0x1c
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x54ea6d
mov edi, dword [ebp - 0x90c]
mov ebx, 0xff
push 0xf0
push ebx
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, esi
push eax
call fcn.0053b624
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x910]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54eb87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0052cc10
add esp, 0xc
push esi
jmp 0x54ec2e
lea esi, [ebx + 0x1c28]
push esi
call fcn.0056c2b0
push 0xf0
mov ebx, 0xff
push ebx
push esi
push 0
push 0x23
jmp 0x54ebc7
lea esi, [ebx + 0x1c08]
push esi
call fcn.0056c2b0
push 0xf0
mov ebx, 0xff
push ebx
push esi
push 0
push 0x18
push 0xfa
push ebx
add eax, 6
push str._c_c_c_c_s_c_c
mov dword [ebp - 0x90c], eax
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0053b624
mov esi, dword [ebp - 0x90c]
lea eax, [ebp - 0x904]
add esp, 0x2c
push 0
push esi
push eax
mov eax, dword [ebp - 0x910]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54ec2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0052cc10
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push edi
call fcn.0054e029
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret