Function at 0x4f5d10
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0xc0
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebp
push esi
mov esi, dword [esp + 0xcc]
xor ebp, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0xb], 0
push edi
lea edi, [esp + 0x78]
mov dword [esp + 0x20], edi
test esi, esi
je 0x4f6394
cmp dword [esi], 0xbab1e
jne 0x4f6394
cmp byte [esi + 0xe2], 0
je 0x4f5d97
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004a1496
add esp, 0xc0
ret
cmp dword [esp + 0xdc], ebp
jge 0x4f5dbd
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004a1496
add esp, 0xc0
ret
push ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4f5e26
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004f44f0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x4f5df3
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x4f5df3
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x4f5e06
cmp dword [esp + edx*4 + 0x68], 0xffffffff
jae 0x4f5e06
inc ebp
jmp 0x4f5e0b
cmp esi, 0xffffffff
je 0x4f5e13
inc edx
rol eax, 1
cmp edx, 5
jb 0x4f5de0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x34], ebp
test ebx, ebx
jne 0x4f5dc5
mov esi, dword [esp + 0x28]
lea edi, [esp + 0x7c]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004f5c10
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
js 0x4f5e4f
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xdc]
add eax, ebp
cmp byte [esp + 0xec], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4f5ea7
lea eax, [ecx*8]
push eax
call dword [0x6f1ba4]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4f5ea2
lea eax, [edi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004a1496
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor ebx, ebx
mov dword [esp + 0x18], ebx
test ebp, ebp
je 0x4f5fb1
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f5fb1
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004f44f0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
xor esi, esi
nop word [eax + eax]
mov eax, 1
mov ecx, esi
shl eax, cl
or edi, 0xffffffff
xor ebx, ebx
test edx, eax
je 0x4f5f20
mov eax, dword [esp + esi*4 + 0x68]
cmp eax, 0xffffffff
jae 0x4f5f20
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebp, 1
mov ebx, 0x29
mov word [ecx + eax*8 + 4], bp
mov ebp, dword [esp + 0x34]
mov dword [ecx + eax*8], edi
inc eax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test edx, eax
je 0x4f5f65
mov eax, dword [esp + esi*4 + 0x68]
cmp eax, 0xffffffff
jae 0x4f5f65
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
mov edx, 4
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x18], eax
jmp 0x4f5f6a
cmp edi, 0xffffffff
je 0x4f5f92
mov eax, dword [esp + 0x28]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4f60c3
mov edx, dword [esp + 0x1c]
inc esi
cmp esi, 5
jb 0x4f5ee0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4f5ec4
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add esi, 0xdc
mov dword [esp + 0x1c], 0
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x30], esi
jbe 0x4f60a6
lea esi, [edi + 4]
mov edi, dword [esp + 0x2c]
lea esi, [esi + ebx*8]
add edi, 4
nop
movzx edx, word [edi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x18], ecx
or dword [esp + 0x18], 4
test dl, 2
mov eax, dword [esp + 0x18]
cmove eax, ecx
lea ecx, [edi - 4]
mov dword [esp + 0x14], ecx
test dl, 4
je 0x4f602f
push 0
push 0
push 0
push dword [ecx]
or eax, 0x32
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x4f6033
mov dword [esp + 0x14], ecx
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0xdc]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4f60c3
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x4f6065
mov eax, 1
mov word [esi], ax
test byte [edi], 2
movzx ecx, ax
je 0x4f6076
or eax, 2
mov word [esi], ax
movzx ecx, ax
test byte [edi], 4
je 0x4f6081
or ecx, 4
mov word [esi], cx
mov eax, dword [esp + 0x1c]
inc ebx
inc eax
mov dword [esp + 0x18], ebx
add esi, 8
mov dword [esp + 0x1c], eax
add edi, 8
cmp eax, dword [esp + 0xdc]
jb 0x4f5fe0
mov esi, dword [esp + 0x30]
test ebx, ebx
jne 0x4f60e1
cmp byte [esp + 0xec], bl
je 0x4f6306
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jmp 0x4f6100
cmp byte [esp + 0x13], 0
je 0x4f60d7
push dword [esp + 0x24]
call dword [0x6f1ba8]
add esp, 4
mov eax, 4
jmp 0x4f5e89
push 0
push 0
push ebx
push dword [esp + 0x30]
call fcn.00521970
add esp, 0x10
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [esp + 0x1c], edi
test eax, eax
jg 0x4f6118
push 0
push dword [esp + 0xe4]
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov eax, dword [esp + 0x20]
test edi, edi
jns 0x4f6126
mov eax, 0xc
jmp 0x4f5e89
xor ecx, ecx
test edi, edi
cmovle eax, ecx
xor esi, esi
mov dword [esp + 0x20], eax
cmp dword [esp + 0xdc], ecx
jbe 0x4f6257
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ebp*8]
add eax, 6
mov dword [esp + 0x14], eax
mov ebp, eax
movsx eax, word [ebp]
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
push ebx
mov dword [esp + 0x44], ebx
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4f61df
mov ecx, dword [esp + 0x3c]
mov eax, ebx
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x38], 0
movzx eax, cx
mov ebx, eax
je 0x4f61df
test edi, edi
jg 0x4f61df
cmp dword [esp + 0x3c], 0
je 0x4f61df
mov eax, dword [esp + 0x30]
inc dword [esp + 0x20]
push 0
push dword [eax]
mov eax, dword [esp + 0x34]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4f623e
mov eax, dword [esp + 0x30]
push 0
push dword [eax]
mov eax, dword [esp + 0x34]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
jle 0x4f623e
mov eax, ebx
or eax, 1
test byte [esp + 0x14], 1
movzx ecx, ax
movzx eax, bx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test byte [esp + 0x14], 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test byte [esp + 0x14], 2
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x2c]
mov word [eax + esi*8 + 6], cx
inc esi
add ebp, 8
cmp esi, dword [esp + 0xdc]
jb 0x4f6154
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
test ebp, ebp
je 0x4f62fa
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f62fa
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004f44f0
add esp, 8
mov ebx, eax
xor esi, esi
mov edi, 1
nop dword [eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x4f62e7
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 0
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4f62cd
cmp dword [esp + 0x38], eax
je 0x4f62cd
test ebp, ebp
jg 0x4f62cd
cmp dword [esp + 0x3c], eax
je 0x4f62cd
inc dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push 0
push dword [eax]
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x4f6290
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4f6276
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x4f631a
push dword [esp + 0x24]
call dword [0x6f1ba8]
add esp, 4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4f6328
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x4f638d
test ebx, ebx
jne 0x4f638d
cmp byte [esp + 0xec], bl
jne 0x4f638d
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp dword [eax], 0xbab1e
jne 0x4f638d
cmp byte [eax + 0xe2], bl
jne 0x4f638d
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.004f5c10
add esp, 8
test eax, eax
jne 0x4f638d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f638d
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x4f6380
test eax, eax
jns 0x4f6382
mov eax, ecx
cdq
push edx
push eax
call fcn.00521df0
add esp, 8
xor eax, eax
jmp 0x4f5e89
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004a1496
add esp, 0xc0
ret