Function at 0x529b6c
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.005292c0
mov edx, eax
cmp eax, 0xffffffff
je 0x52a765
mov eax, 1
dec edx
je 0x52a7cd
call fcn.0052b10a
mov dword [0x697780], eax
add dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
mov ecx, dword [0x697780]
mov eax, dword [edx + 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 0x5265bff
jbe 0x529bde
sub eax, ecx
cmp eax, 0x3e7
jmp 0x529be4
cmp edx, 0x3e7
jbe 0x529bef
push dword [ebp + 8]
call fcn.00528f8d
pop ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
call fcn.00529549
pop edx
cmp eax, 0xffffffff
je 0x52a747
cmp eax, 1
jne 0x52a46e
jmp 0x52a7cd
lea eax, [esi + 0xa8]
xor ecx, ecx
cmp edx, eax
je 0x529c85
mov ecx, dword [ebp - 0x90]
movzx ebx, byte [ecx + 0x24]
push ecx
call fcn.0052b535
pop eax
mov eax, dword [ebp - 0x90]
mov edx, dword [eax + 0x50]
test edx, edx
je 0x529c58
movzx eax, word [eax + 0x20]
sub dword [esi + 0x98], eax
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x529c58
push edx
call fcn.0052a828
pop eax
push dword [ebp - 0x90]
call fcn.0052b5c2
lea eax, [esi + 0xa8]
mov edx, dword [esi + 0xa8]
pop ecx
cmp edx, eax
mov ecx, ebx
je 0x529c85
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 0x529c97
cmp eax, 4
je 0x529cc2
jmp case.0x52a5dc.5
cmp ecx, 3
jne case.0x52a5dc.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.0x52a5dc.5
cmp ecx, 4
jne case.0x52a5dc.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 0x52a0e0
xor ecx, ecx
cmp edx, 0x2b
jbe 0x529fc8
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
xor ecx, ecx
mov dword [ebp - 0x94], eax
dec eax
cmp eax, 0xfe
ja 0x529fc8
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x20]
mov ecx, esi
jmp 0x529d50
cmp dword [esi + 0x18], 0
je 0x529d4a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7c0]
cmp dword [esi + 0xc], eax
jne 0x529d4a
mov ax, word [ebx + 0x7c4]
cmp word [esi + 0x10], ax
jne 0x529d4a
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
cmp dword [esi + 8], eax
jne 0x529d4a
xor ecx, ecx
jmp 0x529fc8
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 0x529d17
mov esi, ecx
jmp 0x529d73
cmp dword [esi + 0x18], 0
je 0x529d80
add esi, 0xc8
imul eax, edx, 0xc8
lea eax, [ecx + eax]
cmp esi, eax
jb 0x529d67
imul eax, edx, 0xc8
lea eax, [ecx + eax]
xor ecx, ecx
cmp esi, eax
jae 0x529fc8
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.0052b560
mov ebx, dword [ebp - 0x94]
pop edx
mov dword [esi + 0x20], ebx
mov ebx, eax
mov dword [esi + 0x1c], eax
jmp 0x529e50
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.0052b510
lea eax, [ebx + 0x18]
mov dword [esp], eax
add ebx, 0x20
call fcn.0052b510
pop eax
mov eax, dword [ebp - 0x94]
shl eax, 5
add eax, dword [esi + 0x1c]
cmp ebx, eax
jb 0x529e1d
movzx eax, word [edi + 0xe]
push eax
call sub.WS2_32.DLL_ntohs
cmp ax, 0x23f
ja 0x529e77
mov eax, 0x240
jmp 0x529e82
cmp ax, 0x1000
jbe 0x529e82
mov eax, 0x1000
mov word [esi + 0x90], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x529ea5
cmp dword [esi + 0x24], 0
jne 0x529ea5
mov dword [esi + 0x94], 0x8000
jmp 0x529eba
mov eax, dword [esi + 0x24]
cmp eax, edx
jbe 0x529eae
mov eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
cmp eax, 0xfff
ja 0x529ed3
mov dword [esi + 0x94], 0x1000
jmp 0x529ee4
cmp eax, 0x8000
jbe 0x529ee4
mov dword [esi + 0x94], 0x8000
mov edx, dword [ebp + 8]
mov ebx, 0x8000
mov eax, dword [edx + 0xc]
test eax, eax
je 0x529efb
mov ebx, eax
shr ebx, 0x10
shl ebx, 0xc
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
cmp ebx, eax
jbe 0x529f11
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov ebx, eax
cmp ebx, 0xfff
ja 0x529f20
mov ebx, 0x1000
jmp 0x529f2d
cmp ebx, 0x8000
jbe 0x529f2d
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.0052abe8
add esp, 0x14
mov ecx, esi
mov esi, ecx
jmp case.0x52a5dc.5
cmp edx, 0x2b
jbe case.0x52a5dc.5
cmp dword [esi + 0x18], 1
jne case.0x52a5dc.5
push dword [edi + 0x14]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x20]
jne 0x52a016
push dword [edi + 0x20]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x74]
jne 0x52a016
push dword [edi + 0x24]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x6c]
jne 0x52a016
push dword [edi + 0x28]
call sub.WS2_32.DLL_ntohl
cmp eax, dword [esi + 0x70]
je 0x52a022
mov dword [esi + 0x18], 6
jmp case.0x52a5dc.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 0x52a047
mov eax, 0x240
jmp 0x52a052
cmp ax, 0x1000
jbe 0x52a052
mov eax, 0x1000
cmp ax, word [esi + 0x90]
jae 0x52a062
mov word [esi + 0x90], ax
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
cmp eax, 0xfff
ja 0x52a078
mov eax, 0x1000
jmp 0x52a084
cmp eax, 0x8000
jbe 0x52a084
mov eax, 0x8000
cmp eax, dword [esi + 0x94]
jae 0x52a092
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.0x52a5dc.5
cmp edx, 0xb
jbe case.0x52a5dc.5
push esi
call fcn.0052aa1a
pop eax
cmp dword [esi + 0x18], 3
je 0x52a0ec
push esi
call fcn.0052aac8
pop eax
jmp case.0x52a5dc.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.0x52a5dc.5
cmp edx, 0xc
jbe case.0x52a5dc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x52a5dc.5
cmp dword [esi + 0x18], 3
jne case.0x52a5dc.5
lea eax, [edx - 0xc]
push 1
push eax
lea eax, [edi + 0xc]
jmp 0x52a159
cmp edx, 0x10
jbe case.0x52a5dc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x52a5dc.5
cmp dword [esi + 0x18], 3
jne case.0x52a5dc.5
lea eax, [edx - 0x10]
push 0
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052a7e0
add esp, 0xc
push 0
push eax
push edi
push esi
call fcn.0052afa5
add esp, 0x10
jmp case.0x52a5dc.5
cmp edx, 0x20
jbe case.0x52a5dc.5
movzx eax, byte [edi + 1]
cmp eax, dword [esi + 0x20]
jae case.0x52a5dc.5
cmp dword [esi + 0x18], 3
jne case.0x52a5dc.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.0x52a5dc.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.0x52a5dc.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.0x52a5dc.5
mov ecx, dword [edx + 0x14]
jmp 0x52a25a
mov dword [ebp - 0xb0], ecx
cmp byte [ecx + 0x10], 8
jne 0x52a251
mov ebx, dword [ebp - 0xa8]
cmp dword [ecx + 0x1c], ebx
je 0x52a261
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [edx + 0x10]
cmp ecx, eax
jne 0x52a23a
lea eax, [edx + 0x10]
cmp ecx, eax
jne 0x52a2c5
lea ebx, [ebp - 0x6c]
push 0x2c
push edi
push ebx
call fcn.00577220
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.0052a7e0
add esp, 0xc
push eax
push ebx
push esi
call fcn.0052afa5
add esp, 0x10
mov dword [ebp - 0xb0], eax
jmp 0x52a2ec
mov ebx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax + 0xc]
jne case.0x52a5dc.5
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebx + 0x3c]
jne case.0x52a5dc.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 0x52a319
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 0x52a344
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.00577220
add esp, 0xc
jmp case.0x52a5dc.5
cmp edx, 0x13
jbe case.0x52a5dc.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 0x52a3a5
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x52a3a5
mov dword [esi + 0x94], 0x8000
jmp 0x52a3bd
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
cmp eax, edx
jbe 0x52a3b1
mov eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
cmp eax, 0xfff
ja 0x52a3d6
mov dword [esi + 0x94], 0x1000
jmp case.0x52a5dc.5
cmp eax, 0x8000
jbe case.0x52a5dc.5
mov dword [esi + 0x94], 0x8000
jmp case.0x52a5dc.5
cmp edx, 0x17
jbe case.0x52a5dc.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 0x52a43b
test byte [edi + 2], 1
je 0x52a43b
mov eax, dword [esi + 0x18]
cmp eax, 4
je 0x52a43b
cmp eax, 5
jne 0x52a42b
cmp byte [edi], 4
jne 0x52a43b
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
push edi
push esi
call fcn.0052af66
add esp, 0xc
cmp dword [ebp - 0x84], 0
je 0x52a45c
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x17c8]
lea edx, [eax + 0x7c8]
cmp dword [ebp - 0x80], edx
jb 0x52a579
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x52a46e
mov eax, 1
jmp 0x52a7cd
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.0052b38b
add esp, 0x10
test eax, eax
jge 0x52a4ae
push str.Error_receiving_incoming_packets
jmp 0x52a76a
je 0x52a72a
mov edx, dword [ebp + 8]
cmp eax, 0xb
mov dword [edx + 0x17c8], eax
jbe 0x52a46e
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 0x52a55c
movzx eax, ax
cmp eax, dword [edx + 0x24]
jae 0x52a46e
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 0x52a46e
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0x7c0], eax
jne 0x52a46e
mov eax, dword [esi + 8]
cmp dword [ebx + 8], eax
jne 0x52a46e
mov ax, word [ecx + 0x7c4]
test esi, esi
mov word [esi + 0x10], ax
je 0x52a55c
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 0x52a43b
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0xc]
cmp eax, edx
ja 0x52a46e
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 0x52a46e
dec dword [ebp - 0x84]
mov dword [ebp - 0x80], edx
test esi, esi
jne 0x52a5c1
cmp byte [edi], 2
jne 0x52a46e
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.0x52a5dc.5
mov edx, dword [edi + 4]
jmp dword [eax*4 + 0x67bf74]
cmp edx, 0x13
jbe case.0x52a5dc.5
push dword [edi + 0x10]
call sub.WS2_32.DLL_ntohl
mov edx, dword [0x697780]
mov ebx, edx
sub ebx, eax
cmp ebx, 0x5265bff
ja case.0x52a5dc.5
mov dword [esi + 0x40], edx
push ebx
push esi
call fcn.0052a870
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 0x52a64d
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 0x52a666
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 0x52a680
mov dword [esi + 0x7c], edx
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 0x8c], ecx
cmp ecx, dword [esi + 0x84]
jbe 0x52a69a
mov dword [esi + 0x84], ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x52a6c0
mov ecx, dword [0x697780]
mov ebx, dword [esi + 0x74]
mov edx, ecx
sub edx, eax
cmp edx, 0x5265bff
jbe 0x52a6bc
sub eax, ecx
cmp eax, ebx
jmp 0x52a6be
cmp edx, ebx
jb 0x52a6ef
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 [0x697780]
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 0x52a71a
mov dword [ebp - 0x90], edx
cmp dword [edx + 8], ebx
jne 0x52a718
cmp byte [edx + 0x25], cl
je 0x529c14
mov edx, dword [edx]
lea eax, [esi + 0xa8]
cmp edx, eax
je 0x529c14
jmp 0x52a704
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
call fcn.00529549
pop edx
cmp eax, 0xffffffff
je 0x52a747
cmp eax, 1
jne 0x52a74e
jmp 0x52a7cd
push str.Error_sending_outgoing_packets
jmp 0x52a76a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.005292c0
cmp eax, 0xffffffff
je 0x52a765
cmp eax, 1
jne 0x52a774
jmp 0x52a7cd
push str.Error_dispatching_incoming_packets
call sub.msvcrt.dll_perror
or eax, 0xffffffff
jmp 0x52a7cd
call fcn.0052b10a
mov edx, eax
mov dword [0x697780], eax
sub edx, dword [ebp + 0x10]
cmp edx, 0x5265bff
jbe 0x52a7cb
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x78], 2
sub ecx, eax
cmp ecx, 0x5265bff
ja 0x52a7a1
mov edx, ecx
lea eax, [ebp - 0x78]
mov ebx, dword [ebp + 8]
push edx
push eax
push dword [ebx]
call fcn.0052b419
add esp, 0xc
test eax, eax
jne 0x52a76f
call fcn.0052b10a
cmp dword [ebp - 0x78], 2
mov dword [0x697780], eax
je 0x529bbd
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret