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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x130
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x3f8]
xor eax, eax
cmp dword [edi], 0
sete al
push eax
push 0
push dword [edi + 0x10]
call fcn.6b4438d0
add esp, 0xc
test edx, edx
js 0x6b4848f2
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_time]
add esp, 4
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0x24]
cmp dword [esp + 0x28], eax
jle 0x6b4848ff
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.msvcrt.dll_time]
add esp, 4
mov dword [ebx], 0
mov ecx, edi
mov edx, 7
call fcn.6b484fb0
mov ecx, ebx
mov ebx, eax
test eax, eax
jne 0x6b484b32
jmp 0x6b484b11
mov dword [edi + 8], 0xffffff9d
mov dword [edi], 3
mov dword [ebx], 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x14]
call fcn.6b4761e0
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x6b484b32
cmp ebx, 0xffffffff
jne 0x6b48495d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x28]
push 0x100
push ecx
push eax
call fcn.6b481730
add esp, 0xc
push eax
push 0x6b735dea
push esi
call fcn.6b476950
add esp, 0xc
mov dword [edi + 0xc], 5
xor ebx, ebx
jmp 0x6b484b32
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 0x3f8]
mov dword [esp + 0x20], pe_nt_image_headers32
mov eax, dword [ebx + 0x134]
add eax, 4
lea ecx, [esp + 0x20]
lea edi, [esp + 0x28]
push ecx
push edi
push 0
push eax
push dword [ebx + 0x140]
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebx + 0x12c], eax
cmp dword [ebx + 0x128], 0
je 0x6b4849c9
cmp eax, 3
jg 0x6b4849f2
push str.Received_too_short_packet
push esi
call fcn.6b476950
add esp, 8
mov dword [ebx + 0xc], 7
mov edi, dword [esp + 0x10]
jmp 0x6b484afe
lea eax, [ebx + 0xa8]
mov esi, dword [esp + 0x20]
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x128], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x12c]
cmp eax, 3
jle 0x6b4849ab
mov edx, dword [ebx + 0x140]
movzx ecx, word [edx]
shl ecx, 0x10
bswap ecx
mov dword [ebx + 0xc], ecx
add ecx, 0xfffffffd
cmp cx, 3
ja case.default.0x6b484a13
movzx ecx, cx
mov edi, dword [esp + 0x10]
jmp dword [ecx*4 + 0x6b735b1c]
cmp eax, 5
jl case.0x6b484a13.1
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x13c]
inc edx
mov ecx, dword [esp + 8]
movzx ecx, word [ecx + 2]
rol cx, 8
cmp dx, cx
mov ecx, dword [esp + 8]
jne case.0x6b484a13.1
mov dword [esp + 0xc], ebx
add ecx, 4
add eax, 0xfffffffc
push eax
push ecx
push 1
push esi
call fcn.6b476de0
add esp, 0x10
test eax, eax
je 0x6b484d67
mov ebx, eax
mov ecx, dword [esp + 0xc]
mov edx, 5
call fcn.6b484fb0
jmp 0x6b484b32
push str.Internal_error:_Unexpected_packet
push 0x6b735dea
push esi
call fcn.6b476950
add esp, 0xc
mov edi, dword [esp + 0x10]
jmp case.0x6b484a13.1
movzx ecx, word [edx + 2]
shl ecx, 0x10
bswap ecx
add edx, 4
mov dword [esp + 8], edx
add eax, 0xfffffffc
mov dword [esp + 0x14], eax
mov dword [ebx + 8], ecx
push eax
push 0
push edx
call sub.msvcrt.dll_memchr
mov edx, dword [esp + 0x14]
add esp, 0xc
mov ecx, eax
sub ecx, edx
test eax, eax
mov eax, dword [esp + 0x14]
cmove ecx, eax
cmp ecx, eax
jae case.0x6b484a13.1
push edx
push str.TFTP_error:__s
push esi
call fcn.6b4767f0
add esp, 0xc
push esi
call fcn.6b473ee0
add esp, 4
test eax, eax
je 0x6b484afe
mov ecx, ebx
mov edx, 5
call fcn.6b484fb0
mov ebx, 0x2a
jmp 0x6b484b32
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.6b484fb0
mov ebx, eax
test eax, eax
mov ecx, dword [ebp + 0xc]
jne 0x6b484b32
xor ebx, ebx
xor eax, eax
cmp dword [edi], 3
sete al
mov dword [ecx], eax
jne 0x6b484b32
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.6b487b50
add esp, 0x18
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [edx + 2]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 4], ecx
mov dword [ebx + 0x134], 0x200
add eax, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
jmp 0x6b484b78
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 8], ecx
cmp ecx, eax
jae case.0x6b484a13.1
mov esi, eax
mov edi, dword [esp + 8]
sub esi, edi
push esi
push 0
push edi
call sub.msvcrt.dll_memchr
add esp, 0xc
mov ebx, eax
sub ebx, edi
test eax, eax
cmove ebx, esi
lea eax, [ebx + 1]
mov edi, esi
sub edi, eax
jbe 0x6b484d0a
add eax, dword [esp + 8]
mov dword [esp + 0x18], eax
push edi
push 0
push eax
call sub.msvcrt.dll_memchr
add esp, 0xc
mov ecx, eax
sub ecx, dword [esp + 0x18]
test eax, eax
cmove ecx, edi
lea eax, [ebx + ecx + 2]
cmp eax, esi
ja 0x6b484d0a
mov dword [esp + 0x18], eax
mov esi, dword [esp + 8]
push esi
call sub.msvcrt.dll_strlen
add esp, 4
lea edi, [eax + esi + 1]
push edi
push esi
push str.got_option__s__value__s_
push dword [esp + 0x10]
call fcn.6b4767f0
add esp, 0x10
push esi
call sub.msvcrt.dll_strlen
add esp, 4
push eax
push str.blksize
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x6b484c7b
push 0xa
push 0
push edi
call sub.msvcrt.dll_strtol
add esp, 0xc
test eax, eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
je 0x6b484d11
cmp eax, 0xffb9
jge 0x6b484d2c
cmp eax, 7
jle 0x6b484d38
mov ecx, dword [ebx + 0x138]
cmp eax, ecx
jg 0x6b484d46
mov dword [ebx + 0x134], eax
push ecx
push str.requested
push eax
push str.blksize_parsed_from_OACK
push str._s___d___s___d_
push dword [esp + 0x18]
call fcn.6b4767f0
add esp, 0x18
jmp 0x6b484b60
mov dword [esp + 0x1c], edi
push esi
call sub.msvcrt.dll_strlen
add esp, 4
push eax
push str.tsize
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
je 0x6b484b60
push 0xa
push 0
push dword [esp + 0x24]
call sub.msvcrt.dll_strtol
add esp, 0xc
mov dword [esp + 0x24], eax
push eax
push str.tsize_parsed_from_OACK
push str._s___ld_
push dword [esp + 0x10]
call fcn.6b4767f0
add esp, 0x10
mov eax, dword [esp + 4]
test byte [eax + 0x6d7], 0x20
jne 0x6b484b60
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x6b484da1
mov eax, ecx
sar eax, 0x1f
push eax
push ecx
push dword [esp + 0xc]
call fcn.6b474bd0
add esp, 0xc
jmp 0x6b484b60
push str.Malformed_ACK_packet__rejecting
jmp 0x6b484d16
push str.invalid_blocksize_value_in_OACK_packet
push dword [esp + 8]
call fcn.6b476950
add esp, 8
mov ebx, 0x47
jmp 0x6b484b32
push 0xffb8
push str.blksize_is_larger_than_max_supported
jmp 0x6b484d3f
push 8
push str.blksize_is_smaller_than_min_supported
push str._s___d_
jmp 0x6b484d51
push eax
push str.server_requested_blksize_larger_than_allocated
push str._s___ld_
push dword [esp + 0x10]
call fcn.6b476950
add esp, 0x10
mov ebx, 0x47
jmp 0x6b484b32
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x12c]
mov ecx, eax
sar ecx, 0x1f
add eax, dword [esi + 0x90]
adc ecx, dword [esi + 0x94]
add eax, 0xfffffffc
adc ecx, 0xffffffff
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
push ecx
push eax
push esi
call fcn.6b475030
jmp 0x6b484adb
push dword [esp + 0x1c]
push str.invalid_tsize__:_s:__value_in_OACK_packet
push dword [esp + 0xc]
call fcn.6b476950
add esp, 0xc
mov ebx, 0x47
jmp 0x6b484b32