Function at 0x49ec70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ef07b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
xor eax, eax
push edi
mov al, byte [esi]
xor ebp, ebp
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi]
push eax
call sub.WSOCK32.dll_ntohl
xor ecx, ecx
mov dword [esp + 0x24], eax
mov cl, byte [esi]
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi + 4]
push eax
call sub.WSOCK32.dll_ntohl
xor edx, edx
mov dword [esp + 0x20], eax
mov dl, byte [esi]
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi + 8]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x30], eax
xor eax, eax
mov al, byte [esi]
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi + 0xc]
push eax
call sub.WSOCK32.dll_ntohl
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov cl, byte [esi]
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov ax, word [eax + esi + 0x10]
push eax
call sub.WSOCK32.dll_ntohs
xor edx, edx
mov dl, byte [esi]
mov cx, word [edx*8 + 0x54901c]
and cx, 0x8000
mov dx, cx
neg dx
sbb edx, edx
and eax, 0xffff
and edx, 2
add eax, 0x12
inc edx
mov edi, eax
and edx, 0xffff
neg cx
sbb ecx, ecx
lea edx, [edx + esi + 0x12]
and ecx, 2
mov dword [esp + 0x28], edx
inc ecx
and ecx, 0xffff
add ecx, edi
mov cx, word [ecx + esi]
push ecx
call sub.WSOCK32.dll_ntohs
mov ebx, eax
add edi, 2
test bx, bx
mov dword [esp + 0x1c], ebx
je 0x49eeab
mov ebp, ebx
and ebp, 0xffff
lea eax, [ebp*4]
push eax
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x49ef27
mov ecx, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x44], ecx
xor edx, edx
mov dl, byte [esi]
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, edi
mov ax, word [eax + esi]
push eax
call sub.WSOCK32.dll_ntohs
mov ebx, eax
add edi, 2
and ebx, 0xffff
lea eax, [ebx + ebx + 2]
push eax
call fcn.004ddf8e
mov ecx, dword [esp + 0x48]
add esp, 4
xor ebp, ebp
mov dword [ecx], eax
mov word [eax + ebx*2], 0
test ebx, ebx
jle 0x49ee89
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
xor edx, edx
mov dl, byte [esi]
lea ecx, [eax + ebp*2]
mov ax, word [edx*8 + 0x54901c]
mov dword [esp + 0x18], ecx
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, edi
mov ax, word [eax + esi]
push eax
mov word [ecx], ax
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x18]
add edi, 2
inc ebp
cmp ebp, ebx
mov word [ecx], ax
jl 0x49ee42
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], eax
jne 0x49edf0
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push 0xcc
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x3c], 0
je 0x49eee9
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push ebp
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, eax
call fcn.00444ef0
test bx, bx
je 0x49ef14
mov edi, ebx
and edi, 0xffff
jle 0x49ef0b
mov esi, ebp
mov eax, dword [esi]
push eax
call fcn.004ddac0
add esp, 4
add esi, 4
dec edi
jne 0x49eefa
push ebp
call fcn.004ddac0
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ebp, dword [esp + 0x10]
jmp 0x49eeab