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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp eax, ecx
push esi
mov esi, 1
push edi
mov edi, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov ebx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
je 0x52f2d4
cmp byte [eax], 0x2d
jne 0x52f2d4
push 0x74
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52f2a1
xor ebx, ebx
mov eax, dword [ebp + 4]
push 0x6e
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52f2b7
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 4]
push 0x62
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x52f2cd
mov dword [esp + 0x14], esi
mov esi, 2
xor ecx, ecx
mov eax, dword [ebp + esi*4]
cmp eax, ecx
jne 0x52f2f2
mov edx, dword [ebp]
push ecx
push ecx
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 0x5a57f8
push eax
mov dword [esp + 0x28], esi
call fcn.005938e0
mov ecx, dword [ebp + esi*4]
add esp, 8
test eax, eax
je 0x52f339
mov edx, dword [0x5f659c]
push 0
call fcn.0052ce80
mov ebp, eax
test ebp, ebp
jne 0x52f380
xor edx, edx
mov ecx, 0x145c
call fcn.0041f1a0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x52f752
call fcn.0052cde0
mov ebp, eax
test ebp, ebp
jne 0x52f35d
xor edx, edx
mov ecx, 0x145d
call fcn.0041f1a0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + esi*4]
push eax
jmp 0x52f751
cmp dword [ebp + 0x1b0], 2
je 0x52f380
xor edx, edx
mov ecx, 0x145e
call fcn.0041f1a0
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
push ecx
jmp 0x52f752
mov eax, dword [ebp + 0x1bc]
test eax, eax
je 0x52f3b6
xor edx, edx
mov ecx, 0x145f
call fcn.0041f1a0
push eax
push str.__sockwrite:__s
push 0x5cbac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc esi
test eax, eax
je 0x52f3e8
mov eax, dword [edx + esi*4]
test eax, eax
je 0x52f3e8
push eax
call fcn.0059164b
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jg 0x52f3e3
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
inc esi
mov ecx, dword [edx + esi*4]
test ecx, ecx
jne 0x52f435
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x52f40a
mov edx, dword [edx]
push ecx
push ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ax, word [0x5a4be8]
mov edx, edi
mov word [edx], ax
mov cl, byte [0x5a4bea]
mov eax, edi
mov byte [edx + 2], cl
mov dword [esp + 0x28], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52f427
sub eax, edx
jmp 0x52f4dc
test ebx, ebx
je 0x52f475
cmp byte [ecx], 0x26
jne 0x52f475
mov edx, dword [esp + 0x28]
call fcn.0041d580
test eax, eax
jne 0x52f465
xor edx, edx
mov ecx, 0x1457
call fcn.0041f1a0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
push eax
jmp 0x52f752
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x28], ecx
jmp 0x52f4ce
push edx
mov edx, edi
mov ecx, esi
mov byte [edi], 0
call fcn.005039a0
mov eax, edi
mov dword [esp + 0x28], edi
lea edx, [eax + 1]
jmp 0x52f490
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52f490
mov ecx, dword [esp + 0x18]
sub eax, edx
test ecx, ecx
je 0x52f4ce
test eax, eax
jle 0x52f4ac
cmp byte [eax + edi - 1], 0xa
je 0x52f4ce
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52f4b0
mov cx, word [0x5a4be8]
mov word [edi], cx
mov dl, byte [0x5a4bea]
mov byte [edi + 2], dl
add eax, 2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x52f4dc
cmp ecx, eax
jge 0x52f4dc
mov eax, ecx
mov ebx, eax
mov edi, edi
cmp dword [ebp + 0x1b0], 2
jne 0x52f6f3
mov ecx, dword [ebp + 0x1a4]
test ecx, ecx
je 0x52f549
mov eax, dword [ebp + 0x1a8]
add eax, ebx
cmp eax, 0x4000
jg 0x52f739
add eax, 0xa
push eax
push ecx
call fcn.00593194
add esp, 8
test eax, eax
je 0x52f771
mov edi, dword [ebp + 0x1a8]
mov esi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
add edi, eax
mov dword [ebp + 0x1a4], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x1a8], ebx
jmp 0x52f57f
lea eax, [ebx + 0xa]
push eax
call fcn.00591118
add esp, 4
test eax, eax
mov dword [ebp + 0x1a4], eax
je 0x52f78c
mov esi, dword [esp + 0x28]
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 + 0x1a8], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x52f5a0
push 0
mov edx, dword [ebp + 0x200]
push 2
mov ecx, 0x8038
call fcn.0056ab30
jmp 0x52f6f3
mov edi, dword [ebp + 0x1a8]
cmp edi, 0x2000
jle 0x52f5b3
mov edi, 0x2000
mov eax, dword [ebp + 0x1f4]
test eax, eax
mov ecx, dword [ebp + 0x200]
je 0x52f5f4
mov edx, dword [ebp + 0x1a4]
push edi
call fcn.00533f00
mov esi, eax
cmp esi, edi
je 0x52f607
cmp esi, 0xfffffffd
jne 0x52f5e7
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x52f60c
push 0x2745
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x52f60c
mov eax, dword [ebp + 0x1a4]
push 0
push edi
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52f646
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esp + 0x1c], 1
je 0x52f6f3
movzx edx, ax
shl edx, 0x10
or edx, 2
mov dword [ebp + 0x1e8], eax
mov eax, dword [ebp + 0x200]
push edx
push eax
push 0x8038
jmp 0x52f6e6
xor edi, edi
push edi
call fcn.00591e16
add esp, 4
cmp esi, edi
mov dword [ebp + 0x1e0], eax
jle 0x52f6b5
mov edx, dword [ebp + 0x1d4]
mov eax, dword [ebp + 0x1a8]
add edx, esi
cmp esi, eax
mov dword [ebp + 0x1d4], edx
jge 0x52f6b5
mov ecx, dword [ebp + 0x1a4]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
mov dword [ebp + 0x1a8], eax
call fcn.00592290
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [ebp + 0x1a4]
add eax, 0xa
push eax
push ecx
call fcn.00593194
add esp, 0x14
cmp eax, edi
je 0x52f6af
mov dword [ebp + 0x1a4], eax
push edi
jmp 0x52f589
mov edx, dword [ebp + 0x1a4]
push edx
call fcn.0059112a
mov dword [ebp + 0x1a4], edi
mov dword [ebp + 0x1a8], edi
mov eax, dword [0x5f35d0]
add esp, 4
cmp eax, edi
je 0x52f6f3
mov eax, dword [ebp + 0x1ac]
push ebp
push eax
push 0x803a
mov ecx, dword [0x5f92ec]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edx, dword [edi + esi*4]
push 0x5a57f8
push edx
call fcn.005938e0
add esp, 8
test eax, eax
je 0x52f72a
mov edx, dword [ebp + 0x208]
mov ecx, dword [edi + esi*4]
push 0
call fcn.0052ce80
mov ebp, eax
test ebp, ebp
jne 0x52f4e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
xor edx, edx
mov ecx, 0x1458
call fcn.0041f1a0
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
push edx
push str.__sockwrite:__s__s
push 0x5cbac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 2
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 2
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4