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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov ebp, dword [esp + 0xf4]
mov ebx, dword [esp + 0xf0]
mov edx, ebp
mov eax, ebx
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
call fcn.00466490
mov edx, eax
cmp eax, 0xffffffff
je 0x467080
mov eax, 1
dec edx
je 0x467074
call fcn.00468980
mov edx, dword [esp + 0xf8]
add edx, eax
lea ecx, [ebx + 0x7c8]
mov dword [0x72d280], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ebp
mov ecx, dword [ebx + 0x14]
mov edx, eax
sub edx, ecx
cmp edx, 0x5265bff
ja 0x4670a0
cmp edx, 0x3e7
seta al
test al, al
jne 0x4670e8
mov ecx, 1
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.004665a0
cmp eax, 0xffffffff
je 0x4670b0
dec eax
je 0x4670d8
lea edx, [ebx + 0x7c0]
mov dword [esp + 0x3c], edx
lea edx, [ebx + 0x7d4]
mov dword [esp + 0x40], edx
lea edx, [ebx + 0x7e0]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x3c]
lea esi, [esp + 0xc4]
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xc4], 0x1000
mov dword [esp], eax
call fcn.00468d60
cmp eax, 0
jl 0x467065
je 0x467b91
mov dword [ebx + 0x17c8], eax
cmp eax, 0xb
jbe 0x466ec4
mov eax, dword [ebx + 0x7c8]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
push edi
mov word [ebx + 0x7c8], ax
mov eax, dword [ebx + 0x7cc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ebp
mov dword [ebx + 0x7cc], eax
mov eax, dword [ebx + 0x7c8]
cmp ax, 0xffff
je 0x4670f5
and eax, 0xffff
cmp eax, dword [ebx + 0x24]
jae 0x466ec4
lea eax, [eax + eax*4]
mov esi, dword [ebx + 0x20]
lea edx, [eax + eax*4]
lea edx, [esi + edx*8]
mov eax, dword [edx + 0x18]
cmp eax, 6
je 0x466ec4
test eax, eax
je 0x466ec4
mov ecx, dword [edx + 0xc]
cmp dword [ebx + 0x7c0], ecx
jne 0x466ec4
mov esi, dword [edx + 8]
cmp dword [ebx + 0x7d0], esi
jne 0x466ec4
mov eax, dword [ebx + 0x7c4]
mov ecx, dword [edx + 0x34]
mov word [edx + 0x10], ax
mov eax, dword [ebx + 0x17c8]
add ecx, eax
mov dword [edx + 0x34], ecx
lea esi, [esi]
xor eax, eax
mov al, byte [ebx + 0x7cb]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4670ca
mov eax, dword [ebx + 0x17c8]
mov ebp, dword [esp + 0x40]
lea eax, [ebx + eax + 0x7c8]
cmp ebp, eax
jae 0x4670ca
mov esi, dword [esp + 0x44]
cmp eax, esi
jb 0x466ec4
lea edi, [esp + 0x98]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov dword [ebp + 4], eax
add eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x17c8]
lea eax, [ebx + eax + 0x7c8]
cmp dword [esp + 0x28], eax
ja 0x466ec4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x467822
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov dword [ebp + 8], eax
cmp byte [ebp], 0xa
ja case.0x46705e.0
xor eax, eax
mov al, byte [ebp]
jmp dword [eax*4 + 0x6ea338]
mov dword [esp], str.Error_receiving_incoming_packets
call sub.msvcrt.dll_perror
or eax, 0xffffffff
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6ea2d0
call sub.msvcrt.dll_perror
add esp, 0xdc
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
sub ecx, eax
cmp ecx, 0x3e7
seta al
jmp 0x466e7e
mov dword [esp], str.Error_sending_outgoing_packets
call sub.msvcrt.dll_perror
add esp, 0xdc
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
test esi, esi
je 0x466ec4
add esp, 0xdc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.00465de0
jmp 0x466e86
xor edx, edx
jmp 0x466fc0
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov edx, dword [esp + 0x24]
cmp eax, dword [edx + 0x74]
jne 0x467787
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ecx
mov edx, dword [esp + 0x24]
cmp eax, dword [edx + 0x6c]
jne 0x467787
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov edx, dword [esp + 0x24]
cmp eax, dword [edx + 0x70]
jne 0x467787
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
push esi
mov edx, dword [esp + 0x24]
mov word [edx + 4], ax
mov ax, word [ebp + 0xe]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
cmp ax, 0x23f
mov edx, 0x240
push edi
jbe 0x46718a
cmp ax, 0x1000
mov edx, eax
jbe 0x46718a
mov edx, 0x1000
mov ecx, dword [esp + 0x24]
cmp word [ecx + 0x90], dx
jbe 0x46719e
mov word [ecx + 0x90], dx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
cmp eax, 0xfff
push ecx
jbe 0x467d04
cmp eax, 0x8000
jbe 0x4671c1
mov eax, 0x8000
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x94], eax
jbe 0x4671d3
mov dword [edx + 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x28], eax
mov dword [ebx + 0x1c], 1
mov dword [edx + 0x18], 3
mov dword [ecx], 1
mov dword [ecx + 4], edx
mov edi, dword [esp + 0x24]
test edi, edi
je 0x467251
test byte [ebp + 2], 1
je 0x467251
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x18]
cmp eax, 4
je 0x467251
cmp eax, 5
je 0x467831
mov eax, dword [ebx + 0x7cc]
mov edx, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.00468250
dec dword [esp + 0x30]
je 0x4670ca
mov eax, dword [ebx + 0x17c8]
lea eax, [ebx + eax + 0x7c8]
cmp dword [esp + 0x28], eax
jae 0x4670ca
mov esi, dword [esp + 0x28]
add esi, 0xc
cmp esi, eax
ja 0x466ec4
mov ebp, dword [esp + 0x28]
jmp 0x467008
cmp dword [ebp + 4], 0x13
jbe case.0x46705e.0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
mov edx, dword [0x72d280]
mov esi, edx
push ecx
sub esi, eax
cmp esi, 0x5265bff
ja case.0x46705e.0
mov eax, dword [esp + 0x24]
mov dword [eax + 0x40], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00467f00
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x8c]
mov eax, edx
shr eax, 2
sub edx, eax
mov eax, dword [ecx + 0x88]
mov dword [ecx + 0x8c], edx
cmp esi, eax
jb 0x467c8c
mov ecx, esi
mov edi, dword [esp + 0x24]
sub ecx, eax
shr ecx, 3
add eax, ecx
sub esi, eax
mov dword [edi + 0x88], eax
shr esi, 2
add edx, esi
mov dword [edi + 0x8c], edx
mov edi, dword [esp + 0x24]
cmp eax, dword [edi + 0x7c]
jae 0x467320
mov dword [edi + 0x7c], eax
mov ecx, dword [esp + 0x24]
cmp edx, dword [ecx + 0x84]
jbe 0x467332
mov dword [ecx + 0x84], edx
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x68]
mov esi, dword [0x72d280]
test ecx, ecx
je 0x46735c
mov edi, esi
sub edi, ecx
cmp edi, 0x5265bff
jbe 0x467353
mov edi, ecx
sub edi, esi
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x74], edi
ja 0x46737e
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x68], esi
mov dword [edi + 0x78], ecx
mov ecx, dword [edi + 0x84]
mov dword [edi + 0x80], ecx
mov dword [edi + 0x7c], eax
mov dword [edi + 0x84], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov ecx, dword [esp + 0x24]
mov dl, byte [ebp + 1]
mov edi, ecx
mov dword [esp + 0x48], 0
mov esi, dword [ecx + 0xa8]
add edi, 0xa8
cmp edi, esi
jne 0x4673ba
jmp 0x467428
mov esi, dword [esi]
cmp edi, esi
je 0x467b84
cmp eax, dword [esi + 8]
jne 0x4673b0
cmp dl, byte [esi + 0x25]
jne 0x4673b0
cmp esi, edi
je 0x467b84
xor edx, edx
mov dl, byte [esi + 0x24]
mov dword [esp], esi
mov dword [esp + 0x48], edx
call fcn.00469010
mov edx, dword [esi + 0x50]
test edx, edx
je 0x467403
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
and eax, 0xffff
sub dword [ecx + 0x98], eax
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
je 0x467cf7
mov dword [esp], esi
call fcn.00468fd0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0xa8]
cmp edi, eax
je 0x467428
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x44], edx
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x18]
cmp eax, 2
je 0x467cb7
cmp eax, 4
jne case.0x46705e.0
cmp dword [esp + 0x48], 4
jne case.0x46705e.0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x1c], 1
mov dword [esi], 2
mov dword [esi + 4], edx
mov dword [esp], edx
call fcn.00468130
jmp case.0x46705e.0
mov eax, dword [ebp + 4]
cmp eax, 0x10
jbe case.0x46705e.0
xor edx, edx
mov ecx, dword [esp + 0x24]
mov dl, byte [ebp + 1]
cmp edx, dword [ecx + 0x20]
jae case.0x46705e.0
cmp dword [ecx + 0x18], 3
jne case.0x46705e.0
sub eax, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.00467d90
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.004687b0
jmp case.0x46705e.0
cmp dword [ebp + 4], 0x17
jbe case.0x46705e.0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov edx, dword [esp + 0x24]
mov dword [edx + 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ecx
mov edx, dword [esp + 0x24]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x70], eax
jmp case.0x46705e.0
cmp dword [ebp + 4], 0xb
jbe case.0x46705e.0
mov edx, dword [esp + 0x24]
mov dword [esp], edx
call fcn.00468070
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x18], 3
je 0x467c54
mov dword [esp], edx
call fcn.00468130
jmp case.0x46705e.0
mov edx, dword [ebp + 4]
cmp edx, 0xc
jbe case.0x46705e.0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov al, byte [ebp + 1]
cmp eax, dword [ecx + 0x20]
jae case.0x46705e.0
cmp dword [ecx + 0x18], 3
jne case.0x46705e.0
sub edx, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], esi
jmp 0x4674ae
cmp dword [ebp + 4], 0x13
jbe case.0x46705e.0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov edx, dword [esp + 0x24]
mov dword [edx + 0x28], eax
mov eax, dword [edx + 0x24]
test eax, eax
mov edx, dword [ebx + 0x10]
jne 0x467b53
test edx, edx
jne 0x467b53
mov edx, dword [esp + 0x24]
mov dword [edx + 0x94], 0x8000
jmp case.0x46705e.0
cmp dword [ebp + 4], 0x20
jbe case.0x46705e.0
xor eax, eax
mov edx, dword [esp + 0x24]
mov al, byte [ebp + 1]
cmp eax, dword [edx + 0x20]
jae case.0x46705e.0
cmp dword [edx + 0x18], 3
jne case.0x46705e.0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
mov edx, eax
push esi
mov eax, dword [ebp + 4]
cmp dword [esp + 0x48], edx
jae case.0x46705e.0
sub eax, 0x20
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp edx, ecx
jb case.0x46705e.0
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x4c], eax
jae case.0x46705e.0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov al, byte [ebp + 1]
mov esi, dword [esp + 0x54]
shl eax, 5
add eax, dword [ecx + 0x1c]
cmp esi, dword [eax + 8]
jbe case.0x46705e.0
mov esi, dword [eax + 0x14]
add eax, 0x10
cmp esi, eax
jne 0x4676ce
jmp 0x467d0e
mov esi, dword [esi + 4]
cmp esi, eax
je 0x467d0e
cmp byte [esi + 0x10], 8
jne 0x4676c3
mov edi, dword [esp + 0x54]
cmp edi, dword [esi + 0x1c]
jne 0x4676c3
cmp esi, eax
je 0x467d0e
mov eax, dword [esi + 0x48]
cmp edx, dword [eax + 0xc]
jne case.0x46705e.0
mov eax, dword [esp + 0x50]
cmp eax, dword [esi + 0x3c]
jne case.0x46705e.0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x44]
shr eax, 5
mov edx, 1
lea eax, [ecx + eax*4]
mov cl, byte [esp + 0x4c]
shl edx, cl
test dword [eax], edx
jne 0x46771d
dec dword [esi + 0x40]
or dword [eax], edx
mov eax, dword [esi + 0x48]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x5c], edx
jbe 0x467733
sub edx, dword [esp + 0x48]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x58]
add edx, dword [eax + 8]
lea eax, [ebp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp case.0x46705e.0
cmp dword [ebp + 4], 0x2b
jbe case.0x46705e.0
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x18], 1
jne case.0x46705e.0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov edx, dword [esp + 0x24]
cmp eax, dword [edx + 0x20]
je 0x4670fc
mov edx, dword [esp + 0x24]
mov dword [edx + 0x18], 6
jmp case.0x46705e.0
lea esi, [ebx + 0x7d0]
mov dword [esp + 0x24], 0
cmp dword [ebp + 4], 0x2b
jbe 0x467251
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov dword [esp + 0x48], eax
dec eax
cmp eax, 0xfe
ja 0x467251
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
cmp edx, eax
jae 0x467251
mov ecx, edx
jmp 0x4677f0
add ecx, 0xc8
cmp ecx, eax
jae 0x467840
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x4677e6
mov edi, dword [ebx + 0x7c0]
cmp dword [ecx + 0xc], edi
jne 0x4677e6
mov edi, dword [ebx + 0x7c4]
cmp word [ecx + 0x10], di
jne 0x4677e6
mov edi, dword [esi]
cmp dword [ecx + 8], edi
jne 0x4677e6
mov dword [esp + 0x24], 0
jmp 0x467251
cmp byte [ebp], 2
je 0x467040
jmp 0x466ec4
cmp byte [ebp], 4
jne 0x467251
jmp 0x467237
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x467865
nop
lea esi, [esi]
add edx, 0xc8
cmp edx, eax
jae 0x467815
mov edi, dword [edx + 0x18]
test edi, edi
jne 0x467850
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0x7d0]
mov dword [edx + 8], eax
mov dword [edx + 0x18], 2
mov eax, dword [ebx + 0x7c0]
mov edx, dword [ebx + 0x7c4]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
push ecx
mov edx, dword [esp + 0x24]
mov word [edx + 4], ax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov edx, dword [esp + 0x24]
mov dword [edx + 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ecx
mov edx, dword [esp + 0x24]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x48]
shl edi, 5
mov dword [edx + 0x70], eax
mov dword [esp], edi
call fcn.00468f50
mov edx, dword [esp + 0x24]
mov esi, eax
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 0x20], eax
lea eax, [esi + edi]
cmp esi, eax
jae 0x467976
mov dword [esp + 0x4c], ebx
mov ebx, edi
mov edi, edx
lea eax, [esi + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esp], eax
call fcn.00468fe0
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.00468fe0
mov eax, dword [edi + 0x1c]
add esi, 0x20
add eax, ebx
cmp esi, eax
jb 0x467935
mov ebx, dword [esp + 0x4c]
mov ax, word [ebp + 0xe]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
cmp ax, 0x23f
push edx
mov edx, 0x240
jbe 0x4679a0
cmp ax, 0x1000
mov edx, eax
jbe 0x4679a0
mov edx, 0x1000
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0x10]
test eax, eax
mov word [ecx + 0x90], dx
jne 0x467b1b
mov edx, dword [ecx + 0x24]
test edx, edx
jne 0x467b22
mov dword [ecx + 0x94], 0x8000
mov eax, dword [ebx + 0xc]
mov esi, 0x8000
test eax, eax
je 0x4679df
mov esi, eax
shr esi, 0x10
shl esi, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
cmp eax, esi
push edi
jb 0x467c41
mov edi, 0x1000
cmp esi, 0xfff
jbe 0x467a0f
mov edi, esi
cmp esi, 0x8000
jbe 0x467a0f
mov edi, 0x8000
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], 0x2c
mov byte [esp + 0x6c], 3
mov byte [esp + 0x6d], 0xff
mov ax, word [edx + 6]
mov byte [esp + 0x6e], 1
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
push edx
mov edx, dword [esp + 0x24]
mov word [esp + 0x78], ax
mov eax, dword [edx + 0x90]
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
push ecx
mov dword [esp], edi
mov word [esp + 0x7a], ax
call sub.ws2_32.dll_htonl
push esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0x74]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push esi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 0x6c]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x90], eax
mov eax, dword [edx + 0x70]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
push edx
lea ecx, [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004682b0
jmp case.0x46705e.0
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 0x24]
cmp edx, eax
jbe 0x467b28
mov edx, eax
shr edx, 0x10
mov edi, dword [esp + 0x24]
shl edx, 0xc
mov dword [edi + 0x94], edx
cmp edx, 0xfff
ja 0x467c6d
mov dword [edi + 0x94], 0x1000
jmp 0x4679cb
cmp edx, eax
jbe 0x467b59
mov edx, eax
shr edx, 0x10
mov ecx, dword [esp + 0x24]
shl edx, 0xc
mov dword [ecx + 0x94], edx
cmp edx, 0xfff
ja 0x467ce6
mov dword [ecx + 0x94], 0x1000
jmp case.0x46705e.0
mov dword [esp + 0x48], 0
jmp 0x467428
mov ecx, 1
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.004665a0
cmp eax, 0xffffffff
je 0x4670b0
dec eax
je 0x4670d8
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.00466490
cmp eax, 0xffffffff
je 0x467080
dec eax
je 0x4670d8
call fcn.00468980
mov ecx, dword [esp + 0x38]
mov edx, eax
mov dword [0x72d280], eax
sub edx, ecx
cmp edx, 0x5265bff
jbe 0x467c3a
mov esi, dword [esp + 0x38]
mov dword [esp + 0xcc], 2
sub esi, eax
cmp esi, 0x5265bff
ja 0x467c01
mov edx, esi
lea eax, [esp + 0xcc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00468e30
test eax, eax
jne 0x467071
call fcn.00468980
cmp dword [esp + 0xcc], 2
mov dword [0x72d280], eax
je 0x466e62
xor eax, eax
jmp 0x467074
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll_htonl
mov esi, eax
push ecx
jmp 0x4679f3
xor eax, eax
mov edx, dword [esp + 0x24]
mov al, byte [ebp + 2]
and eax, 1
neg eax
add eax, 6
mov dword [edx + 0x18], eax
jmp case.0x46705e.0
cmp edx, 0x8000
jbe 0x4679cb
mov edx, dword [esp + 0x24]
mov dword [edx + 0x94], 0x8000
jmp 0x4679cb
mov ecx, eax
sub ecx, esi
shr ecx, 3
sub eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x88], eax
mov ecx, eax
sub ecx, esi
mov esi, dword [esp + 0x24]
shr ecx, 2
add edx, ecx
mov dword [esi + 0x8c], edx
jmp 0x467314
cmp dword [esp + 0x48], 3
jne case.0x46705e.0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x1c], 1
mov dword [edx + 0x18], 3
mov dword [ecx], 1
mov dword [ecx + 4], edx
jmp case.0x46705e.0
cmp edx, 0x8000
ja 0x4675d6
jmp case.0x46705e.0
mov dword [esp], edx
call fcn.00467df0
jmp 0x467403
mov eax, 0x1000
jmp 0x4671c1
mov edi, dword [esp + 0x20]
mov ecx, 0xb
mov esi, ebp
mov eax, dword [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 4], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 8], 1
mov dword [esp], 0
call fcn.00467d90
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x98]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004687b0
mov esi, eax
jmp 0x4676fe