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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 4]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, 1
push edi
mov edi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
je 0x552328
cmp byte [eax], 0x2d
jne 0x552328
push 0x74
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x5522f9
xor edi, edi
mov eax, dword [ebp + 4]
push 0x6e
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x55230f
mov dword [esp + 0x14], esi
mov ecx, dword [ebp + 4]
push 0x62
push ecx
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x552323
mov ebx, esi
mov esi, 2
mov eax, dword [ebp + esi*4]
test eax, eax
jne 0x552347
mov edx, dword [ebp]
push eax
push eax
push edx
push eax
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x5f58e4
push eax
mov dword [esp + 0x28], esi
call fcn.005dc370
mov ecx, dword [ebp + esi*4]
add esp, 8
test eax, eax
je 0x552391
mov eax, dword [0x69362c]
push 0
push eax
push ecx
call fcn.0054fc20
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x5523db
push eax
push 0x145c
call fcn.00424130
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x5527fc
push ecx
call fcn.0054fb80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5523b9
push eax
push 0x145d
call fcn.00424130
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x5527fc
cmp dword [ebp + 0x4e8], 2
je 0x5523db
push 0
push 0x145e
call fcn.00424130
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push eax
jmp 0x5527fb
mov eax, dword [ebp + 0x4f4]
test eax, eax
je 0x55241e
push 0
push 0x145f
call fcn.00424130
push eax
push str.__sockwrite:__s
push 0x643160
call fcn.005d9929
push 6
push 0
push 0x643160
push 0
call fcn.0048bd90
add esp, 0x24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
inc esi
test ebx, ebx
je 0x552444
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x552444
push eax
call fcn.005d9a55
mov ebx, eax
add esp, 4
test ebx, ebx
jg 0x55243f
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
inc esi
mov eax, dword [ecx + esi*4]
test eax, eax
jne 0x55249e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x55246c
mov eax, dword [ecx]
push 0
push 0
push eax
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dx, word [0x5f4c8c]
mov ecx, eax
mov word [ecx], dx
mov dl, byte [0x5f4c8e]
mov byte [ecx + 2], dl
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x552490
sub eax, edx
jmp 0x552548
test edi, edi
je 0x5524e2
cmp byte [eax], 0x26
jne 0x5524e2
mov ecx, dword [esp + 0x34]
push ecx
push eax
call fcn.00420030
add esp, 8
test eax, eax
jne 0x5524d2
push eax
push 0x1457
call fcn.00424130
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x5527fc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x55253e
mov edi, dword [esp + 0x30]
push ecx
push edi
push esi
mov byte [edi], 0
call fcn.0051c470
mov eax, edi
add esp, 0xc
mov dword [esp + 0x10], edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x552500
mov ecx, dword [esp + 0x14]
sub eax, edx
test ecx, ecx
je 0x55253e
test eax, eax
jle 0x55251c
cmp byte [eax + edi - 1], 0xa
je 0x55253e
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x552520
mov cx, word [0x5f4c8c]
mov word [edi], cx
mov dl, byte [0x5f4c8e]
mov byte [edi + 2], dl
add eax, 2
test ebx, ebx
je 0x552548
cmp ebx, eax
jge 0x552548
mov eax, ebx
mov ebx, eax
mov dword [esp + 0x24], ebx
mov edi, edi
cmp dword [ebp + 0x4e8], 2
jne 0x55279a
mov ecx, dword [ebp + 0x4dc]
test ecx, ecx
je 0x5525b9
mov eax, dword [ebp + 0x4e0]
add eax, ebx
cmp eax, 0x4000
jg 0x5527e3
add eax, 0xa
push eax
push ecx
call fcn.005dbd64
add esp, 8
test eax, eax
je 0x552828
mov edi, dword [ebp + 0x4e0]
mov esi, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
add edi, eax
mov dword [ebp + 0x4dc], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x4e0], ebx
jmp 0x5525ef
lea eax, [ebx + 0xa]
push eax
call fcn.005d9f91
add esp, 4
test eax, eax
mov dword [ebp + 0x4dc], eax
je 0x552845
mov esi, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x4e0], ebx
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x552615
mov eax, dword [ebp + 0x544]
push ebx
push 2
push eax
push 0x8038
call fcn.00599d90
add esp, 0x10
jmp 0x55279a
mov edi, dword [ebp + 0x4e0]
cmp edi, 0x2000
jle 0x552628
mov edi, 0x2000
cmp dword [ebp + 0x538], ebx
je 0x552670
mov ecx, dword [ebp + 0x4dc]
mov edx, dword [ebp + 0x544]
push edi
push ecx
push edx
call fcn.005570c0
mov esi, eax
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x14], esi
je 0x55268c
cmp esi, 0xfffffffd
jne 0x552663
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x552691
push 0x2745
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x552691
mov eax, dword [ebp + 0x4dc]
mov ecx, dword [ebp + 0x544]
push ebx
push edi
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x5526d2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esp + 0x1c], 1
je 0x55279a
movzx edx, ax
shl edx, 0x10
mov dword [ebp + 0x52c], eax
mov eax, dword [ebp + 0x544]
mov ecx, dword [0x6a0f40]
or edx, 2
push edx
push eax
push 0x8038
push ecx
jmp 0x552794
push ebx
call fcn.005daa26
add esp, 4
cmp esi, ebx
mov dword [ebp + 0x524], eax
jle 0x55275c
fild dword [esp + 0x14]
mov eax, dword [ebp + 0x4e0]
cmp esi, eax
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [ebp + 0x510]
fstp qword [ebp + 0x510]
jge 0x55275c
mov ecx, dword [ebp + 0x4dc]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
mov dword [ebp + 0x4e0], eax
call fcn.005daa60
mov eax, dword [ebp + 0x4e0]
mov ecx, dword [ebp + 0x4dc]
add eax, 0xa
push eax
push ecx
call fcn.005dbd64
add esp, 0x14
cmp eax, ebx
je 0x552743
mov dword [ebp + 0x4dc], eax
mov edx, dword [ebp + 0x544]
push ebx
push 2
push edx
push 0x8038
call fcn.00599d90
add esp, 0x10
jmp 0x55279a
mov eax, dword [ebp + 0x4dc]
push eax
call fcn.005d9fa3
mov dword [ebp + 0x4dc], ebx
mov dword [ebp + 0x4e0], ebx
mov eax, dword [0x68758c]
add esp, 4
cmp eax, ebx
je 0x55279a
mov ecx, dword [ebp + 0x4e4]
mov edx, dword [0x6a0f40]
push ebp
push ecx
push 0x803a
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov eax, dword [edi + esi*4]
push 0x5f58e4
push eax
call fcn.005dc370
add esp, 8
test eax, eax
je 0x552862
mov ecx, dword [ebp + 0x54c]
mov edx, dword [edi + esi*4]
push 0
push ecx
push edx
call fcn.0054fc20
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x552862
mov ebx, dword [esp + 0x24]
jmp 0x552550
push 0
push 0x1458
call fcn.00424130
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + ecx*4]
push edx
push str.__sockwrite:__s__s
push 0x643160
call fcn.005d9929
push 6
push 0
push 0x643160
push 0
call fcn.0048bd90
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push 2
push 0
push ecx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push 2
push 0
push eax
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret