Function at 0x4e1e4c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xa4
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
call fcn.004e15a0
mov edx, eax
cmp eax, 0xffffffff
je 0x4e2a45
mov eax, 1
dec edx
je 0x4e2aad
call fcn.004e33ea
mov dword [0x622570], eax
add dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
mov ecx, dword [0x622570]
mov eax, dword [edx + 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 0x5265bff
jbe 0x4e1ebe
sub eax, ecx
cmp eax, 0x3e7
jmp 0x4e1ec4
cmp edx, 0x3e7
jbe 0x4e1ecf
push dword [ebp + 8]
call fcn.004e126d
pop ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
call fcn.004e1829
pop edx
cmp eax, 0xffffffff
je 0x4e2a27
cmp eax, 1
jne 0x4e274e
jmp 0x4e2aad
lea eax, [esi + 0xa8]
xor ecx, ecx
cmp edx, eax
je 0x4e1f65
mov ecx, dword [ebp - 0x90]
movzx ebx, byte [ecx + 0x24]
push ecx
call fcn.004e3815
pop eax
mov eax, dword [ebp - 0x90]
mov edx, dword [eax + 0x50]
test edx, edx
je 0x4e1f38
movzx eax, word [eax + 0x20]
sub dword [esi + 0x98], eax
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x4e1f38
push edx
call fcn.004e2b08
pop eax
push dword [ebp - 0x90]
call fcn.004e38a2
lea eax, [esi + 0xa8]
mov edx, dword [esi + 0xa8]
pop ecx
cmp edx, eax
mov ecx, ebx
je 0x4e1f65
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x90], edx
add eax, dword [edx + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x18]
cmp eax, 2
je 0x4e1f77
cmp eax, 4
je 0x4e1fa2
jmp case.0x4e28bc.5
cmp ecx, 3
jne case.0x4e28bc.5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], 3
mov dword [edx + 0x1c], 1
mov dword [ecx], 1
mov dword [ecx + 4], esi
jmp case.0x4e28bc.5
cmp ecx, 4
jne case.0x4e28bc.5
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
mov dword [ebx + 0x1c], 1
mov dword [eax + 4], esi
jmp 0x4e23c0
xor ecx, ecx
cmp edx, 0x2b
jbe 0x4e22a8
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
xor ecx, ecx
mov dword [ebp - 0x94], eax
dec eax
cmp eax, 0xfe
ja 0x4e22a8
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x20]
mov ecx, esi
jmp 0x4e2030
cmp dword [esi + 0x18], 0
je 0x4e202a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7c0]
cmp dword [esi + 0xc], eax
jne 0x4e202a
mov ax, word [ebx + 0x7c4]
cmp word [esi + 0x10], ax
jne 0x4e202a
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
cmp dword [esi + 8], eax
jne 0x4e202a
xor ecx, ecx
jmp 0x4e22a8
add esi, 0xc8
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x24]
imul eax, edx, 0xc8
lea eax, [ecx + eax]
cmp esi, eax
jb 0x4e1ff7
mov esi, ecx
jmp 0x4e2053
cmp dword [esi + 0x18], 0
je 0x4e2060
add esi, 0xc8
imul eax, edx, 0xc8
lea eax, [ecx + eax]
cmp esi, eax
jb 0x4e2047
imul eax, edx, 0xc8
lea eax, [ecx + eax]
xor ecx, ecx
cmp esi, eax
jae 0x4e22a8
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], 2
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x7c0]
mov edx, dword [ecx + 0x7c4]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
movzx eax, word [edi + 0xc]
push eax
call sub.WS2_32.DLL_ntohs
mov word [esi + 4], ax
push dword [edi + 0x18]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x24], eax
push dword [edi + 0x1c]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x28], eax
push dword [edi + 0x20]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x74], eax
push dword [edi + 0x24]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x6c], eax
push dword [edi + 0x28]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x94]
shl eax, 5
push eax
call fcn.004e3840
mov ebx, dword [ebp - 0x94]
pop edx
mov dword [esi + 0x20], ebx
mov ebx, eax
mov dword [esi + 0x1c], eax
jmp 0x4e2130
lea eax, [ebx + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push eax
call fcn.004e37f0
lea eax, [ebx + 0x18]
mov dword [esp], eax
add ebx, 0x20
call fcn.004e37f0
pop eax
mov eax, dword [ebp - 0x94]
shl eax, 5
add eax, dword [esi + 0x1c]
cmp ebx, eax
jb 0x4e20fd
movzx eax, word [edi + 0xe]
push eax
call sub.WS2_32.DLL_ntohs
cmp ax, 0x23f
ja 0x4e2157
mov eax, 0x240
jmp 0x4e2162
cmp ax, 0x1000
jbe 0x4e2162
mov eax, 0x1000
mov word [esi + 0x90], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x4e2185
cmp dword [esi + 0x24], 0
jne 0x4e2185
mov dword [esi + 0x94], 0x8000
jmp 0x4e219a
mov eax, dword [esi + 0x24]
cmp eax, edx
jbe 0x4e218e
mov eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
cmp eax, 0xfff
ja 0x4e21b3
mov dword [esi + 0x94], 0x1000
jmp 0x4e21c4
cmp eax, 0x8000
jbe 0x4e21c4
mov dword [esi + 0x94], 0x8000
mov edx, dword [ebp + 8]
mov ebx, 0x8000
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4e21db
mov ebx, eax
shr ebx, 0x10
shl ebx, 0xc
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
cmp ebx, eax
jbe 0x4e21f1
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov ebx, eax
cmp ebx, 0xfff
ja 0x4e2200
mov ebx, 0x1000
jmp 0x4e220d
cmp ebx, 0x8000
jbe 0x4e220d
mov ebx, 0x8000
mov byte [ebp - 0x3c], 3
mov byte [ebp - 0x3b], 0xff
mov byte [ebp - 0x3a], 1
mov dword [ebp - 0x38], 0x2c
movzx eax, word [esi + 6]
push eax
call sub.WS2_32.DLL_htons
mov word [ebp - 0x30], ax
movzx eax, word [esi + 0x90]
push eax
call sub.WS2_32.DLL_htons
push ebx
mov word [ebp - 0x2e], ax
call sub.WS2_32.DLL_htonl
push dword [ebp - 0x94]
mov dword [ebp - 0x2c], eax
call sub.WS2_32.DLL_htonl
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push dword [ecx + 0xc]
call sub.WS2_32.DLL_htonl
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push dword [ebx + 0x10]
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x20], eax
push dword [esi + 0x74]
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x1c], eax
push dword [esi + 0x6c]
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x18], eax
push dword [esi + 0x70]
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push 0
push 0
push 0
push eax
push esi
call fcn.004e2ec8
add esp, 0x14
mov ecx, esi
mov esi, ecx
jmp case.0x4e28bc.5
cmp edx, 0x2b
jbe case.0x4e28bc.5
cmp dword [esi + 0x18], 1
jne case.0x4e28bc.5
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x20]
jne 0x4e22f6
push dword [edi + 0x20]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x74]
jne 0x4e22f6
push dword [edi + 0x24]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x6c]
jne 0x4e22f6
push dword [edi + 0x28]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x70]
je 0x4e2302
mov dword [esi + 0x18], 6
jmp case.0x4e28bc.5
movzx eax, word [edi + 0xc]
push eax
call sub.WS2_32.DLL_ntohs
mov word [esi + 4], ax
movzx eax, word [edi + 0xe]
push eax
call sub.WS2_32.DLL_ntohs
cmp ax, 0x23f
ja 0x4e2327
mov eax, 0x240
jmp 0x4e2332
cmp ax, 0x1000
jbe 0x4e2332
mov eax, 0x1000
cmp ax, word [esi + 0x90]
jae 0x4e2342
mov word [esi + 0x90], ax
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
cmp eax, 0xfff
ja 0x4e2358
mov eax, 0x1000
jmp 0x4e2364
cmp eax, 0x8000
jbe 0x4e2364
mov eax, 0x8000
cmp eax, dword [esi + 0x94]
jae 0x4e2372
mov dword [esi + 0x94], eax
push dword [edi + 0x18]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x24], eax
push dword [edi + 0x1c]
call sub.WS2_32.DLL_ntohl
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x18], 3
mov dword [edx], 1
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [edx + 4], esi
mov dword [eax + 0x1c], 1
jmp case.0x4e28bc.5
cmp edx, 0xb
jbe case.0x4e28bc.5
push esi
call fcn.004e2cfa
pop eax
cmp dword [esi + 0x18], 3
je 0x4e23cc
push esi
call fcn.004e2da8
pop eax
jmp case.0x4e28bc.5
movzx eax, byte [edi + 2]
and eax, 1
cmp eax, 1
sbb eax, eax
not eax
add eax, 6
mov dword [esi + 0x18], eax
jmp case.0x4e28bc.5
cmp edx, 0xc
jbe case.0x4e28bc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x4e28bc.5
cmp dword [esi + 0x18], 3
jne case.0x4e28bc.5
lea eax, [edx - 0xc]
push 1
push eax
lea eax, [edi + 0xc]
jmp 0x4e2439
cmp edx, 0x10
jbe case.0x4e28bc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x4e28bc.5
cmp dword [esi + 0x18], 3
jne case.0x4e28bc.5
lea eax, [edx - 0x10]
push 0
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e2ac0
add esp, 0xc
push 0
push eax
push edi
push esi
call fcn.004e3285
add esp, 0x10
jmp case.0x4e28bc.5
cmp edx, 0x20
jbe case.0x4e28bc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x4e28bc.5
cmp dword [esi + 0x18], 3
jne case.0x4e28bc.5
push dword [edi + 0xc]
call sub.WS2_32.DLL_ntohl
mov dword [ebp - 0xa8], eax
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
mov dword [ebp - 0x98], eax
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov dword [ebp - 0x9c], eax
push dword [edi + 0x1c]
call sub.WS2_32.DLL_ntohl
mov dword [ebp - 0xa0], eax
push dword [edi + 0x18]
call sub.WS2_32.DLL_ntohl
mov dword [ebp - 0xac], eax
mov ecx, dword [edi + 4]
sub ecx, 0x20
cmp dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], ecx
jae case.0x4e28bc.5
mov eax, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
add eax, ecx
cmp eax, dword [ebp - 0xac]
seta dl
cmp dword [ebp - 0x98], ebx
setae al
or eax, edx
test al, 1
jne case.0x4e28bc.5
movzx edx, byte [edi + 1]
shl edx, 5
mov eax, dword [ebp - 0xa8]
add edx, dword [esi + 0x1c]
cmp eax, dword [edx + 8]
jbe case.0x4e28bc.5
mov ecx, dword [edx + 0x14]
jmp 0x4e253a
mov dword [ebp - 0xb0], ecx
cmp byte [ecx + 0x10], 8
jne 0x4e2531
mov ebx, dword [ebp - 0xa8]
cmp dword [ecx + 0x1c], ebx
je 0x4e2541
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [edx + 0x10]
cmp ecx, eax
jne 0x4e251a
lea eax, [edx + 0x10]
cmp ecx, eax
jne 0x4e25a5
lea ebx, [ebp - 0x6c]
push 0x2c
push edi
push ebx
call fcn.0052ef10
add esp, 0xc
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xac]
push eax
mov dword [ebp - 0x50], edx
push 1
mov dword [ebp - 0x54], ecx
push ecx
mov dword [ebp - 0x5c], eax
push 0
call fcn.004e2ac0
add esp, 0xc
push eax
push ebx
push esi
call fcn.004e3285
add esp, 0x10
mov dword [ebp - 0xb0], eax
jmp 0x4e25cc
mov ebx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax + 0xc]
jne case.0x4e28bc.5
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebx + 0x3c]
jne case.0x4e28bc.5
mov ebx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x98]
shr edx, 5
mov cl, byte [ebp - 0x98]
mov eax, dword [ebx + 0x44]
mov ebx, 1
shl ebx, cl
test dword [eax + edx*4], ebx
jne 0x4e25f9
mov ecx, dword [ebp - 0xb0]
dec dword [ecx + 0x40]
or dword [eax + edx*4], ebx
mov ebx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebx + 0x48]
add eax, dword [ebp - 0xa4]
mov edx, dword [ecx + 0xc]
cmp eax, edx
jbe 0x4e2624
sub edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov eax, dword [ecx + 8]
push dword [ebp - 0xa4]
add dword [ebp - 0xa0], eax
lea eax, [edi + 0x20]
push eax
push dword [ebp - 0xa0]
call fcn.0052ef10
add esp, 0xc
jmp case.0x4e28bc.5
cmp edx, 0x13
jbe case.0x4e28bc.5
push dword [edi + 0xc]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x24], eax
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov edx, dword [esi + 0x24]
test edx, edx
mov dword [esi + 0x28], eax
jne 0x4e2685
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x4e2685
mov dword [esi + 0x94], 0x8000
jmp 0x4e269d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
cmp eax, edx
jbe 0x4e2691
mov eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
cmp eax, 0xfff
ja 0x4e26b6
mov dword [esi + 0x94], 0x1000
jmp case.0x4e28bc.5
cmp eax, 0x8000
jbe case.0x4e28bc.5
mov dword [esi + 0x94], 0x8000
jmp case.0x4e28bc.5
cmp edx, 0x17
jbe case.0x4e28bc.5
push dword [edi + 0xc]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x74], eax
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x6c], eax
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
mov dword [esi + 0x70], eax
test esi, esi
je 0x4e271b
test byte [edi + 2], 1
je 0x4e271b
mov eax, dword [esi + 0x18]
cmp eax, 4
je 0x4e271b
cmp eax, 5
jne 0x4e270b
cmp byte [edi], 4
jne 0x4e271b
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
push edi
push esi
call fcn.004e3246
add esp, 0xc
cmp dword [ebp - 0x84], 0
je 0x4e273c
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x17c8]
lea edx, [eax + 0x7c8]
cmp dword [ebp - 0x80], edx
jb 0x4e2859
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4e274e
mov eax, 1
jmp 0x4e2aad
lea eax, [ebp - 0x74]
push 1
push eax
mov eax, dword [ebp + 8]
add eax, 0x7c0
mov ebx, dword [ebp + 8]
push eax
mov dword [ebp - 0x74], 0x1000
push dword [ebx]
mov ecx, dword [ebp + 8]
add ecx, 0x7c8
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], ecx
call fcn.004e366b
add esp, 0x10
test eax, eax
jge 0x4e278e
push str.Error_receiving_incoming_packets
jmp 0x4e2a4a
je 0x4e2a0a
mov edx, dword [ebp + 8]
cmp eax, 0xb
mov dword [edx + 0x17c8], eax
jbe 0x4e274e
movzx eax, word [edx + 0x7c8]
push eax
call sub.WS2_32.DLL_ntohs
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [ebp + 8]
xor esi, esi
mov word [ecx + 0x7c8], ax
push dword [ebx + 4]
call sub.WS2_32.DLL_ntohl
mov edx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov ax, word [edx + 0x7c8]
cmp ax, 0xffff
je 0x4e283c
movzx eax, ax
cmp eax, dword [edx + 0x24]
jae 0x4e274e
imul esi, eax, 0xc8
add esi, dword [edx + 0x20]
mov eax, dword [esi + 0x18]
test eax, eax
sete dl
cmp eax, 6
sete al
or eax, edx
test al, 1
jne 0x4e274e
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0x7c0], eax
jne 0x4e274e
mov eax, dword [esi + 8]
cmp dword [ebx + 8], eax
jne 0x4e274e
mov ax, word [ecx + 0x7c4]
test esi, esi
mov word [esi + 0x10], ax
je 0x4e283c
mov eax, dword [ecx + 0x17c8]
add dword [esi + 0x34], eax
mov ebx, dword [ebp - 0x7c]
mov eax, dword [ebp + 8]
add eax, 0x7d4
movzx ebx, byte [ebx + 3]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ebx
jmp 0x4e271b
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0xc]
cmp eax, edx
ja 0x4e274e
push dword [edi + 4]
call sub.WS2_32.DLL_ntohl
mov dword [edi + 4], eax
lea edx, [edi + eax]
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x17c8]
add eax, 0x7c8
cmp edx, eax
ja 0x4e274e
dec dword [ebp - 0x84]
mov dword [ebp - 0x80], edx
test esi, esi
jne 0x4e28a1
cmp byte [edi], 2
jne 0x4e274e
push dword [edi + 8]
call sub.WS2_32.DLL_ntohl
mov dword [edi + 8], eax
movzx eax, byte [edi]
dec eax
cmp eax, 9
ja case.0x4e28bc.5
mov edx, dword [edi + 4]
jmp dword [eax*4 + 0x606f14]
cmp edx, 0x13
jbe case.0x4e28bc.5
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov edx, dword [0x622570]
mov ebx, edx
sub ebx, eax
cmp ebx, 0x5265bff
ja case.0x4e28bc.5
mov dword [esi + 0x40], edx
push ebx
push esi
call fcn.004e2b50
mov edx, dword [esi + 0x8c]
pop ecx
pop eax
mov eax, edx
shr eax, 2
mov ecx, dword [esi + 0x88]
sub edx, eax
cmp ebx, ecx
mov dword [esi + 0x8c], edx
jb 0x4e292d
mov eax, ebx
sub eax, ecx
shr eax, 3
lea eax, [ecx + eax]
sub ebx, eax
mov dword [esi + 0x88], eax
shr ebx, 2
lea eax, [edx + ebx]
jmp 0x4e2946
mov eax, ecx
sub eax, ebx
shr eax, 3
sub ecx, eax
mov eax, ecx
mov dword [esi + 0x88], ecx
sub eax, ebx
shr eax, 2
lea eax, [edx + eax]
mov edx, dword [esi + 0x88]
mov dword [esi + 0x8c], eax
mov dword [ebp - 0x88], edx
cmp edx, dword [esi + 0x7c]
jae 0x4e2960
mov dword [esi + 0x7c], edx
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 0x8c], ecx
cmp ecx, dword [esi + 0x84]
jbe 0x4e297a
mov dword [esi + 0x84], ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4e29a0
mov ecx, dword [0x622570]
mov ebx, dword [esi + 0x74]
mov edx, ecx
sub edx, eax
cmp edx, 0x5265bff
jbe 0x4e299c
sub eax, ecx
cmp eax, ebx
jmp 0x4e299e
cmp edx, ebx
jb 0x4e29cf
mov eax, dword [esi + 0x7c]
mov ebx, dword [ebp - 0x88]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x84]
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 0x84], eax
mov eax, dword [0x622570]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x68], eax
push dword [edi + 0xc]
call sub.WS2_32.DLL_ntohl
mov cl, byte [edi + 1]
mov ebx, eax
mov edx, dword [esi + 0xa8]
jmp 0x4e29fa
mov dword [ebp - 0x90], edx
cmp dword [edx + 8], ebx
jne 0x4e29f8
cmp byte [edx + 0x25], cl
je 0x4e1ef4
mov edx, dword [edx]
lea eax, [esi + 0xa8]
cmp edx, eax
je 0x4e1ef4
jmp 0x4e29e4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
call fcn.004e1829
pop edx
cmp eax, 0xffffffff
je 0x4e2a27
cmp eax, 1
jne 0x4e2a2e
jmp 0x4e2aad
push str.Error_sending_outgoing_packets
jmp 0x4e2a4a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004e15a0
cmp eax, 0xffffffff
je 0x4e2a45
cmp eax, 1
jne 0x4e2a54
jmp 0x4e2aad
push str.Error_dispatching_incoming_packets
call sub.msvcrt.dll_perror
or eax, 0xffffffff
jmp 0x4e2aad
call fcn.004e33ea
mov edx, eax
mov dword [0x622570], eax
sub edx, dword [ebp + 0x10]
cmp edx, 0x5265bff
jbe 0x4e2aab
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x78], 2
sub ecx, eax
cmp ecx, 0x5265bff
ja 0x4e2a81
mov edx, ecx
lea eax, [ebp - 0x78]
mov ebx, dword [ebp + 8]
push edx
push eax
push dword [ebx]
call fcn.004e36f9
add esp, 0xc
test eax, eax
jne 0x4e2a4f
call fcn.004e33ea
cmp dword [ebp - 0x78], 2
mov dword [0x622570], eax
je 0x4e1e9d
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret