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

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x1dc]
push ebx
mov ebx, dword [esp + 0x1d4]
push ebp
mov ebp, dword [esp + 0x1cc]
push esi
mov esi, dword [esp + 0x1e4]
push edi
mov edi, dword [esp + 0x1d8]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
cmp edi, eax
je 0x487837
add edi, 0x30
mov dword [esp + 0x3c], edi
cmp edi, eax
je 0x48783d
mov eax, dword [edi]
and al, 0x7f
cmp al, 2
je 0x48783d
movzx eax, word [edx + 2]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov eax, dword [esp + 0x1e8]
add ecx, eax
push ecx
push eax
push ebx
mov ecx, esi
mov eax, edi
call fcn.00487640
add esp, 0x10
test eax, eax
je 0x487900
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
push esi
mov esi, dword [esp + 0x48]
mov ecx, ebx
call fcn.00491be0
add esp, 0x10
jmp 0x488551
xor edi, edi
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1f0]
add eax, 0x14
push ebx
mov dword [esp + 0x28], 0
call fcn.004871a0
add esp, 0x10
cmp dword [esp + 0x18], 0
mov esi, eax
mov dword [esp + 0x38], esi
jne 0x487a15
push 1
push 0
push 1
push 0x800
call fcn.00464fc0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x487a97
push 0x68
lea ecx, [esp + 0x64]
push 0
mov ebx, 0x14
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
call fcn.005bfd50
add esp, 0xc
lea esi, [esp + 0x24]
call fcn.00464e60
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
test edi, edi
je 0x48794d
mov ecx, dword [edi + 0x2ac]
mov edx, dword [edi + 0x2b0]
mov eax, dword [edi + 0x388]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0x1f4]
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], eax
jmp 0x487966
mov eax, dword [esp + 0x1dc]
test eax, eax
je 0x48783d
cmp word [eax + 0x1ac], 0
je 0x48783d
movzx ecx, word [0x69f82c]
push str.Remote_encapsulation_port_changed
push ecx
call fcn.0047a3c0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push 0
push edx
push ecx
push esi
mov esi, eax
mov ecx, ebx
call fcn.00491be0
add esp, 0x18
jmp 0x488551
mov ecx, dword [ebp + 0x1e0]
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dx, word [eax + 2]
mov ax, word [eax]
mov word [esp + 0xb8], ax
mov eax, dword [ebp + 0xd0]
mov word [esp + 0xba], dx
mov byte [esp + 0xc2], 0
mov byte [esp + 0xbf], 0
mov byte [esp + 0xc0], 0
test eax, 0x4000000
je 0x4879c1
mov eax, dword [ebp + 0x20]
shr eax, 0xf
not al
and al, 1
mov byte [esp + 0xbd], 1
mov byte [esp + 0xbc], al
jmp 0x4879e7
mov byte [esp + 0xbd], 0
test eax, eax
jns 0x4879df
mov byte [esp + 0xbe], 1
mov byte [esp + 0xbc], 0
jmp 0x4879ef
mov byte [esp + 0xbc], 1
mov byte [esp + 0xbe], 0
mov byte [esp + 0xc1], 0
test ecx, ecx
jne 0x487b2c
mov edx, dword [esp + 0x20]
cmp word [edx], 0x7b
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
je 0x487ac7
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x487a6e
push str.sctp_send_initiate_ack
push 0x17a3
push str....._third_partieswebrtc_sctp_netinet_sctp_output.c
push str._s:_d_at__s
push 0xffffffffffffffff
lea eax, [esp + 0xdc]
push pe_nt_image_headers32
push eax
call fcn.005c1fa7
add esp, 0x1c
test eax, eax
jge 0x487a54
mov byte [esp + 0xc8], 0
movzx edx, word [0x69f82c]
lea ecx, [esp + 0xc8]
push ecx
push edx
call fcn.0047a3c0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ecx
call fcn.00479870
add esp, 8
test eax, eax
je 0x487aa3
test esi, esi
je 0x488551
mov eax, esi
call fcn.004653c0
jmp 0x488551
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push esi
push 6
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
call fcn.0048f510
add esp, 0x18
jmp 0x488551
mov edx, ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 4]
xor eax, eax
mov dword [esp + 0x8c], ecx
mov ecx, 4
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
jmp 0x487bc9
cmp word [ecx + 0x74], 0x7b
movzx eax, byte [edi + 0x493]
movzx edx, byte [edi + 0x494]
mov byte [esp + 0xc2], al
movzx eax, byte [edi + 0x496]
mov byte [esp + 0xc1], dl
movzx edx, byte [edi + 0x495]
mov byte [esp + 0xc0], al
lea eax, [ecx + 0x74]
mov byte [esp + 0xbf], dl
mov dword [esp + 0x44], eax
jne 0x487bc9
mov eax, dword [eax + 4]
xor ecx, ecx
mov edx, 4
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
test edi, edi
je 0x487bdc
mov al, byte [edi + 0x48b]
mov byte [esp + 0xc3], al
jmp 0x487be9
mov cl, byte [ebp + 0x234]
mov byte [esp + 0xc3], cl
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [edx + 8]
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [str.KAME_BSD_1.1]
mov ecx, dword [0x67f820]
mov dword [esp + 0x84], eax
mov eax, dword [0x67f81c]
mov dword [esp + 0x60], edx
xor edx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0xc4], 0
mov byte [esi], 2
mov byte [esi + 1], 0
mov word [esi + 2], dx
test edi, edi
je 0x487d5f
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x30]
and eax, 0x7f
cmp eax, 2
je 0x487c5f
cmp eax, 1
je 0x487c5f
cmp eax, 4
jne 0x487c82
mov ecx, dword [edi + 0x2a4]
push ecx
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
mov edx, dword [edi + 0x2c8]
push edx
call sub.WS2_32.dll_htonl
mov dword [esi + 0x10], eax
jmp 0x487e1d
lea eax, [edi + 0x430]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esp + 0x34]
add eax, 0x57c
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x69f318
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x30]
movzx ecx, word [eax]
movzx edx, word [ebp + 0x3a]
lea esi, [esp + 0x58]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
call fcn.00464e60
lea esp, [esp]
lea eax, [ebp + 0xd8]
push eax
call fcn.00474fd0
mov esi, eax
add esp, 4
test esi, esi
je 0x487cd0
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push esi
call fcn.0046d960
add esp, 8
test eax, eax
je 0x487cd0
push 0x69f318
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x48f], 0
je 0x487d1b
cmp esi, dword [edi + 0x2a4]
je 0x487ca5
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x20]
mov dword [esi + 4], eax
lea eax, [ebp + 0xd8]
push eax
call fcn.00474fd0
add esp, 4
push eax
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
lea eax, [edi + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x487e19
push 1
lea edi, [ebp + 0x2b0]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [ebp + 0x268]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x69f318
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x30]
movzx eax, word [edx]
movzx ecx, word [ebp + 0x3a]
lea esi, [esp + 0x58]
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
call fcn.00464e60
lea eax, [ebp + 0xd8]
push eax
call fcn.00474fd0
mov esi, eax
add esp, 4
test esi, esi
je 0x487da2
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
push esi
call fcn.0046d960
add esp, 8
test eax, eax
je 0x487da2
push 0x69f318
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x20]
mov dword [esi + 4], eax
lea eax, [ebp + 0xd8]
push eax
call fcn.00474fd0
add esp, 4
push eax
call sub.WS2_32.dll_htonl
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc4]
test eax, eax
jne 0x487e48
mov eax, dword [esp + 0x38]
call fcn.004653c0
mov eax, dword [esp + 0x14]
call fcn.004653c0
jmp 0x488551
mov eax, dword [eax + 0xcc]
cmp eax, 0x1000
ja 0x487e5a
mov eax, 0x1000
push eax
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
movzx edx, word [ecx + 0xe]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
test edi, edi
je 0x487e99
movzx eax, word [edi + 0x44a]
movzx edx, ax
cmp edx, dword [edi + 0x380]
jbe 0x487e90
movzx eax, ax
jmp 0x487ea0
movzx eax, word [edi + 0x380]
jmp 0x487ea0
movzx eax, word [ebp + 0x17c]
cmp cx, ax
jae 0x487eb3
mov eax, dword [esp + 0x2c]
mov cx, word [eax + 0xe]
mov word [esi + 0xc], cx
jmp 0x487ebd
push eax
call sub.WS2_32.dll_htons
mov word [esi + 0xc], ax
movzx edx, word [ebp + 0x17e]
push edx
call sub.WS2_32.dll_htons
mov word [esi + 0xe], ax
cmp byte [ebp + 0x1f0], 0
je 0x487f11
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
push 0xc006
add esi, 0x14
call sub.WS2_32.dll_htons
push 8
mov word [esi], ax
call sub.WS2_32.dll_htons
mov word [esi + 2], ax
mov ecx, dword [ebp + 0x1ec]
push ecx
call sub.WS2_32.dll_htonl
mov ebx, 0x1c
mov dword [esi + 4], eax
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x487f20
cmp byte [edi + 0x483], 1
je 0x487f29
jmp 0x487f56
cmp byte [ebp + 0x22c], 1
jne 0x487f61
mov edx, dword [esp + 0x14]
movzx esi, bx
add esi, dword [edx + 8]
push 0x8000
call sub.WS2_32.dll_htons
push 4
mov word [esi], ax
call sub.WS2_32.dll_htons
add ebx, 4
mov word [esi + 2], ax
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x487f61
cmp byte [edi + 0x484], 1
je 0x487f6a
jmp 0x487f97
cmp byte [ebp + 0x22d], 1
jne 0x487fa2
mov eax, dword [esp + 0x14]
movzx esi, bx
add esi, dword [eax + 8]
push 0xc000
call sub.WS2_32.dll_htons
push 4
mov word [esi], ax
call sub.WS2_32.dll_htons
add ebx, 4
mov word [esi + 2], ax
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x487fa2
cmp byte [edi + 0x48b], 0
jne 0x487fab
jmp 0x487ff2
cmp byte [ebp + 0x234], 0
je 0x487ff2
mov ecx, dword [esp + 0x14]
movzx esi, bx
add esi, dword [ecx + 8]
push 0x8001
call sub.WS2_32.dll_htons
push 8
mov word [esi], ax
call sub.WS2_32.dll_htons
mov word [esi + 2], ax
test edi, edi
je 0x487fdb
movzx edx, byte [edi + 0x48b]
push edx
jmp 0x487fe3
movzx eax, byte [ebp + 0x234]
push eax
call sub.WS2_32.dll_htonl
add ebx, 8
mov dword [esi + 4], eax
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x50], 0
je 0x488022
mov ecx, dword [esp + 0x14]
movzx esi, bx
add esi, dword [ecx + 8]
push 0xc007
call sub.WS2_32.dll_htons
push 4
mov word [esi], ax
call sub.WS2_32.dll_htons
add ebx, 4
mov word [esi + 2], ax
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x14]
movzx esi, bx
add esi, dword [edx + 8]
xor eax, eax
test edi, edi
je 0x48803d
cmp byte [edi + 0x484], 1
je 0x488046
jmp 0x488072
cmp byte [ebp + 0x22d], 1
jne 0x48807d
mov byte [esi + 4], 0xc0
mov eax, 1
test edi, edi
je 0x48805d
cmp byte [edi + 0x48a], al
je 0x488065
jmp 0x488072
cmp byte [ebp + 0x22f], al
jne 0x48807d
mov byte [esi + 5], 0xc2
mov eax, 2
test edi, edi
je 0x48807d
cmp byte [edi + 0x485], 1
je 0x488086
jmp 0x488093
cmp byte [ebp + 0x22e], 1
jne 0x48809e
movzx ecx, ax
inc eax
mov byte [ecx + esi + 4], 0xf
test edi, edi
je 0x48809e
cmp byte [edi + 0x486], 1
je 0x4880a7
jmp 0x4880bd
cmp byte [ebp + 0x230], 1
jne 0x4880c8
movzx edx, ax
inc eax
movzx ecx, ax
inc eax
mov byte [edx + esi + 4], 0xc1
mov byte [ecx + esi + 4], 0x80
test edi, edi
je 0x4880c8
cmp byte [edi + 0x487], 1
je 0x4880d1
jmp 0x4880de
cmp byte [ebp + 0x231], 1
jne 0x4880e9
movzx edx, ax
inc eax
mov byte [edx + esi + 4], 0x82
test edi, edi
je 0x4880e9
cmp byte [edi + 0x48a], 1
je 0x4880f2
jmp 0x4880ff
cmp byte [ebp + 0x22f], 1
jne 0x48810a
movzx ecx, ax
inc eax
mov byte [ecx + esi + 4], 0x40
test edi, edi
je 0x48810a
cmp byte [edi + 0x488], 1
je 0x488113
jmp 0x488120
cmp byte [ebp + 0x232], 1
jne 0x48812b
movzx edx, ax
inc eax
mov byte [edx + esi + 4], 0x10
test edi, edi
je 0x48812b
cmp byte [edi + 0x489], 1
je 0x488134
jmp 0x48813d
cmp byte [ebp + 0x233], 1
jne 0x48813d
movzx ecx, ax
mov byte [ecx + esi + 4], 0x81
inc eax
test ax, ax
jbe 0x48817b
add eax, 4
push 0x8008
movzx edi, ax
call sub.WS2_32.dll_htons
push edi
mov word [esi], ax
call sub.WS2_32.dll_htons
lea edx, [edi + 3]
and edx, 0xfffc
sub edx, edi
mov word [esi + 2], ax
movzx eax, dx
add ebx, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x48818d
cmp byte [edi + 0x485], 1
je 0x48819a
jmp 0x4882a5
cmp byte [ebp + 0x22e], 1
jne 0x4882a5
cmp word [esp + 0x18], 0
jbe 0x4881c1
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx ecx, si
movzx edx, bx
add edx, dword [eax + 8]
push ecx
push 0
push edx
call fcn.005bfd50
add esp, 0xc
add ebx, esi
mov edi, dword [esp + 0x14]
movzx esi, bx
add esi, dword [edi + 8]
push 0x8002
call sub.WS2_32.dll_htons
push 0x24
mov word [esi], ax
call sub.WS2_32.dll_htons
lea edx, [esi + 4]
mov ecx, 0x20
mov word [esi + 2], ax
call fcn.0040c130
mov edx, dword [ebp + 0x168]
add ebx, 0x24
movzx esi, bx
add esi, dword [edi + 8]
lea ecx, [esi + 4]
push ecx
push edx
call fcn.00496c90
add esp, 8
add eax, 4
push 0x8004
movzx edi, ax
call sub.WS2_32.dll_htons
push edi
mov word [esi], ax
call sub.WS2_32.dll_htons
mov word [esi + 2], ax
lea eax, [edi + 3]
and eax, 0xfffc
sub eax, edi
movzx esi, ax
add ebx, edi
test si, si
jbe 0x488258
mov eax, dword [esp + 0x14]
movzx ecx, si
movzx edx, bx
add edx, dword [eax + 8]
push ecx
push 0
push edx
call fcn.005bfd50
add esp, 0xc
add ebx, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x164]
movzx edi, bx
add edi, dword [ecx + 8]
lea edx, [edi + 4]
call fcn.00496580
add eax, 4
push 0x8003
movzx esi, ax
call sub.WS2_32.dll_htons
push esi
mov word [edi], ax
call sub.WS2_32.dll_htons
lea edx, [esi + 3]
and edx, 0xfffc
sub edx, esi
mov word [edi + 2], ax
movzx eax, dx
add ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 0xbc]
movzx ecx, bx
mov dword [eax + 0xc], ecx
movzx ecx, byte [esp + 0xbd]
mov byte [esp + 0x24], dl
movzx edx, byte [esp + 0xbe]
mov byte [esp + 0x25], cl
movzx ecx, byte [esp + 0xc2]
mov byte [esp + 0x26], dl
movzx edx, byte [esp + 0xc1]
mov byte [esp + 0x27], cl
movzx ecx, byte [esp + 0xbf]
mov byte [esp + 0x28], dl
movzx edx, byte [esp + 0xc0]
mov byte [esp + 0x29], cl
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x2e], dl
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x30]
push eax
push ecx
mov eax, ebp
call fcn.00485a90
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov edi, eax
test si, si
jbe 0x488355
movzx edx, word [esp + 0x1c]
mov eax, dword [esp + 0x14]
add edx, dword [eax + 8]
movzx ebx, si
push ebx
push 0
push edx
call fcn.005bfd50
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], esi
add dword [eax + 0xc], ebx
add esp, 0xc
xor esi, esi
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4883a4
mov dword [esp + 0x18], 0
mov cx, word [esp + 0x18]
mov eax, edx
lea esp, [esp]
add cx, word [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x488370
mov word [esp + 0x18], cx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 3]
and eax, 0xfffc
sub eax, ecx
movzx esi, ax
mov eax, edx
mov dword [edi], edx
test eax, eax
je 0x4883a0
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x488398
add dword [esp + 0x1c], ecx
test si, si
jbe 0x4883c3
movzx ecx, si
push ecx
call fcn.00477190
mov edi, eax
add esp, 4
test edi, edi
je 0x487e3a
add dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1e4]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
push edx
call fcn.00486740
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4883f9
mov eax, ebx
call fcn.004653c0
jmp 0x488551
mov dword [esp + 0x18], 0
mov dx, word [esp + 0x18]
mov dword [edi], esi
mov eax, esi
lea ebx, [ebx]
mov ecx, dword [eax]
add dx, word [eax + 0xc]
test ecx, ecx
jne 0x48841c
mov edi, eax
mov eax, ecx
test eax, eax
jne 0x488410
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
lea ecx, [eax + 3]
and ecx, 0xfffc
sub ecx, eax
movzx ebx, cx
mov ecx, dword [esp + 0x1c]
add ecx, eax
push ecx
call sub.WS2_32.dll_htons
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
push 0x14
mov word [edx + 2], ax
movsx eax, byte [ebp + 0x201]
push 4
push esi
shl eax, 5
push 0x20
lea edx, [eax + ebp + 0xdc]
push 1
call fcn.00496f60
add esp, 0x14
cmp dword [esp + 0x9c], 4
jne 0x488497
lea ecx, [esp + 0x24]
push ecx
push 4
push 0x30
push esi
mov dword [esp + 0x34], 0
call fcn.004659b0
add esp, 0x10
cmp dword [esp + 0xb0], 4
jne 0x4884bb
lea edx, [esp + 0x24]
push edx
push 4
push 0x44
push esi
mov dword [esp + 0x34], 0
call fcn.004659b0
add esp, 0x10
test bx, bx
jbe 0x4884d4
movzx eax, bx
push eax
call fcn.00477190
add esp, 4
test eax, eax
je 0x487e3a
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x30]
movzx ecx, word [eax]
mov eax, dword [esp + 0x14]
push 0
push edx
movzx edx, word [ebp + 0x3a]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push ebp
xor eax, eax
xor ecx, ecx
call fcn.004868a0
add esp, 0x30
test eax, eax
je 0x488535
cmp eax, 0x2747
jne 0x488544
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x488526
mov byte [eax + 0x49f], 1
push 1
push 0x69f634
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x488544
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x488544
mov byte [eax + 0x49f], 0
push 1
push 0x69f4a8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0x1c0
ret