Function at 0x1000edd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x100b5eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100f9124]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x218]
mov ebx, dword [ebp + 0x228]
mov esi, dword [ebp + 0x220]
mov edi, ecx
mov ecx, dword [ebp + 0x22c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
call dword [0x100fa5b0]
mov edx, dword [ebp + 0x224]
push edx
push esi
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.1000e8f0
xor esi, esi
xor eax, eax
cmp ebx, esi
setne al
mov dword [ebp - 4], esi
mov byte [ebp], 5
mov byte [ebp + 1], 1
mov byte [ebp + 2], 0
mov ebx, eax
cmp ebx, esi
je 0x1000ee70
mov byte [ebp + 1], 2
mov byte [ebp + 3], 2
mov eax, dword [edi + 4]
xor ecx, ecx
cmp ebx, esi
setne cl
push esi
lea edx, [ebp]
add ecx, 3
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000ee95
push esi
call fcn.1000e790
xor ax, ax
mov word [ebp - 0x1c], ax
lea esp, [esp]
cmp esi, 2
jae 0x1000eeee
mov ecx, dword [ebp + 0x230]
push ecx
mov ecx, edi
call fcn.1000ea20
test eax, eax
je 0x1000eee4
mov ecx, dword [edi + 4]
push 0
mov edx, 2
sub edx, esi
push edx
lea eax, [ebp + esi - 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1000eedc
push 0
call fcn.1000e790
add esi, eax
mov ax, word [ebp - 0x1c]
jmp 0x1000eea0
push 0x274c
call fcn.1000e790
test ebx, ebx
je 0x1000eefd
test ah, ah
je 0x1000ef0f
cmp ah, 2
jne 0x1000ef05
jmp 0x1000ef18
test ah, ah
je 0x1000f099
push 0x274d
call fcn.1000e790
cmp ah, 2
jne 0x1000f099
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x1000ef24
mov dword [ebp - 0x24], edi
jmp 0x1000ef5c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1000ef3e
mov dword [ebp - 0x24], 0
jmp 0x1000ef5c
lea esi, [eax + eax]
mov eax, esi
call fcn.10097b70
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.1000e720
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x1000ef68
mov dword [ebp - 0x14], edi
jmp 0x1000efa0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1000ef82
mov dword [ebp - 0x14], 0
jmp 0x1000efa0
lea esi, [eax + eax]
mov eax, esi
call fcn.10097b70
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.1000e720
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x24]
lea ecx, [ebx + 1]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x1000efa6
sub ebx, ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x18], eax
je 0x1000efd0
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000efc2
sub eax, edx
mov dword [ebp - 0x18], eax
cmp ebx, 0xff
ja 0x1000f117
cmp eax, 0xff
ja 0x1000f117
lea edi, [eax + ebx + 3]
push edi
call fcn.100899ef
mov edx, dword [ebp - 0x24]
add esp, 4
mov esi, eax
push ebx
push edx
lea eax, [esi + 2]
push eax
mov byte [esi], 1
mov byte [esi + 1], bl
call fcn.10096770
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [esi + ebx + 3]
push edx
mov byte [esi + ebx + 2], al
call fcn.10096770
add esp, 0x18
push 0
push edi
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f040
push 0
call fcn.1000e790
mov word [ebp - 0x20], 0
xor esi, esi
cmp esi, 2
jae 0x1000f08c
mov ecx, dword [ebp + 0x230]
push ecx
mov ecx, edi
call fcn.1000ea20
test eax, eax
je 0x1000eee4
mov ecx, dword [edi + 4]
push 0
mov edx, 2
sub edx, esi
push edx
lea eax, [ebp + esi - 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1000f088
push 0
call fcn.1000e790
add esi, eax
jmp 0x1000f048
cmp byte [ebp - 0x1f], 0
je 0x1000f099
push 5
call fcn.1000e790
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x1000f0a4
xor esi, esi
jmp 0x1000f0ef
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1000f0eb
lea ebx, [eax + eax]
mov eax, ebx
call fcn.10097b70
mov esi, esp
test esi, esi
mov dword [ebp - 0x10], esp
je 0x1000f0eb
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edx
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1000f0ed
xor eax, eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1000f1a2
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x1000f104
sub ebx, ecx
cmp ebx, 0xff
jbe 0x1000f11e
push 0x57
call fcn.1000e790
push 0x106
lea ecx, [ebp + 0x104]
push 0
push ecx
call fcn.100956b0
cmp dword [ebp + 0x234], 0
push ebx
setne dl
lea eax, [ebp + 0x109]
push esi
push eax
mov byte [ebp + 0x104], 5
mov byte [ebp + 0x107], 3
mov byte [ebp + 0x108], bl
lea edx, [edx + edx + 1]
mov byte [ebp + 0x105], dl
call fcn.10096770
mov ecx, dword [ebp + 0x21c]
add esp, 0x18
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + ebx + 0x109], ax
push 0
lea eax, [ebx + 7]
push eax
mov eax, dword [edi + 4]
lea edx, [ebp + 0x104]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f1ec
push 0
call fcn.1000e790
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x30], cx
mov ecx, dword [ebp + 0x21c]
push ecx
mov byte [ebp - 0x38], 5
mov byte [ebp - 0x37], 1
mov byte [ebp - 0x35], 1
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 0xa
lea edx, [ebp - 0x38]
mov word [ebp - 0x30], ax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f1ec
push 0
call fcn.1000e790
mov ecx, dword [ebp + 0x230]
push ecx
mov ecx, edi
call fcn.1000ece0
lea esp, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1009536d
add ebp, 0x210
mov esp, ebp
pop ebp
ret 0x20