Function at 0x67364fcc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [ebp - 0xb0], eax
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xb0]
mov ebx, dword [ecx + 0x2d8]
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
lea esi, [ebp - 0xa0]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x144]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_recvfrom
sub esp, 0x18
mov dword [ebx + 0x13c], eax
mov edx, dword [ebx + 0x138]
test edx, edx
je 0x67365190
cmp eax, 3
jle 0x67365164
mov esi, dword [ebx + 0x14c]
movzx ecx, byte [esi]
shl ecx, 8
movzx edx, byte [esi + 1]
or edx, ecx
movzx ecx, dx
mov dword [ebx + 0xc], ecx
cmp dx, 4
je 0x673650a6
jbe 0x673650e0
cmp dx, 5
je 0x673651b4
cmp dx, 6
je 0x673651ec
mov dword [esp + 8], str.Internal_error:_Unexpected_packet
mov dword [esp + 4], 0x6739b394
mov ecx, dword [ebp - 0xac]
mov dword [esp], ecx
call fcn.67346d80
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.6735284c
test eax, eax
jne 0x673650c4
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, 5
mov eax, ebx
call fcn.67364b7c
mov esi, 0x2a
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp dx, 3
jne 0x67365088
cmp eax, 4
je 0x673650a6
movzx edi, word [ebx + 0x30]
inc edi
movzx ecx, byte [esi + 2]
shl ecx, 8
movzx edx, byte [esi + 3]
or edx, ecx
cmp dx, di
jne 0x673650a6
sub eax, 4
mov dword [esp + 0xc], eax
add esi, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.67346e48
mov esi, eax
test eax, eax
jne 0x673654ff
mov eax, dword [ebx + 0x13c]
sub eax, 4
cdq
mov ecx, dword [ebp - 0xac]
add eax, dword [ecx + 0x38]
adc edx, dword [ecx + 0x3c]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ecx
call fcn.673527ac
jmp 0x673650a6
mov dword [esp + 4], 0x6739b59c
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call fcn.67346d80
mov dword [ebx + 0xc], 7
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea eax, [ebx + 0xb8]
mov ecx, dword [ebp - 0x1c]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x138], eax
mov eax, dword [ebx + 0x13c]
jmp 0x6736504b
movzx edx, byte [esi + 2]
shl edx, 8
movzx eax, byte [esi + 3]
or eax, edx
movzx eax, ax
mov dword [ebx + 8], eax
add esi, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x6739b448
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call fcn.673471e0
jmp 0x673650a6
add esi, 2
mov edx, dword [ebx + 0x10]
mov edx, dword [edx]
mov dword [ebp - 0xb4], edx
mov dword [ebx + 0x144], 0x200
lea eax, [esi + eax - 2]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xbc], ebx
cmp dword [ebp - 0xac], esi
jbe 0x67365448
mov ebx, dword [ebp - 0xac]
sub ebx, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_memchr
test eax, eax
je 0x67365440
sub eax, esi
lea edi, [eax + 1]
cmp ebx, edi
ja 0x67365270
mov dword [esp + 4], str.Malformed_ACK_packet__rejecting
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
call fcn.67346d80
mov esi, 0x47
jmp 0x673650ba
mov edx, ebx
sub edx, edi
lea ecx, [esi + edi]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], ecx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], ecx
call sub.msvcrt.dll_memchr
test eax, eax
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
je 0x673652ab
mov edx, eax
sub edx, ecx
lea edx, [edi + edx + 1]
cmp ebx, edx
jb 0x6736524d
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add edx, esi
mov dword [ebp - 0xb8], edx
je 0x6736524d
lea ebx, [esi + ecx]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.got_option__s__value__s__n
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.673471e0
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], str.blksize
mov dword [esp], esi
call fcn.673696c4
test eax, eax
je 0x673653a4
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strtol
test eax, eax
je 0x67365453
cmp eax, 0xffb8
jg 0x67365473
cmp eax, 7
jle 0x673654a3
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x148]
cmp eax, edx
jg 0x673654d3
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + 0x144], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], str.requested
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.blksize_parsed_from_OACK
mov dword [esp + 4], str._s___d___s___d__n
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.673471e0
mov esi, dword [ebp - 0xb8]
jmp 0x67365214
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], str.tsize
mov dword [esp], esi
call fcn.673696c4
test eax, eax
je 0x67365397
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strtol
mov esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.tsize_parsed_from_OACK
mov dword [esp + 4], str._s___ld__n
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
call fcn.673471e0
mov eax, dword [ebp - 0xb4]
cmp byte [eax + 0x2a8], 0
jne 0x67365397
test esi, esi
je 0x67365510
mov dword [esp + 4], esi
mov ecx, esi
sar ecx, 0x1f
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.673527e4
jmp 0x67365397
mov eax, ebx
jmp 0x67365246
mov ebx, dword [ebp - 0xbc]
jmp 0x673650a6
mov dword [esp + 4], str.invalid_blocksize_value_in_OACK_packet
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
call fcn.67346d80
mov esi, 0x47
jmp 0x673650ba
mov dword [esp + 0xc], 0xffb8
mov dword [esp + 8], str.blksize_is_larger_than_max_supported
mov dword [esp + 4], str._s___d_
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.67346d80
mov esi, 0x47
jmp 0x673650ba
mov dword [esp + 0xc], 8
mov dword [esp + 8], str.blksize_is_smaller_than_min_supported
mov dword [esp + 4], str._s___d_
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
call fcn.67346d80
mov esi, 0x47
jmp 0x673650ba
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.server_requested_blksize_larger_than_allocated
mov dword [esp + 4], str._s___ld_
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.67346d80
mov esi, 0x47
jmp 0x673650ba
mov edx, 5
mov eax, ebx
call fcn.67364b7c
jmp 0x673650ba
mov dword [esp + 8], ebx
mov dword [esp + 4], str.invalid_tsize__:_s:__value_in_OACK_packet
mov dword [esp], eax
call fcn.67346d80
mov si, 0x47
jmp 0x673650ba