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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x98]
mov ebx, dword [eax + 0x3d0]
mov edi, dword [eax]
mov dword [esp], esi
call sub.msvcrt.dll_time
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebx + 0x28]
cmp ecx, eax
jl 0x4346e0
mov edx, dword [ebx + 0x2c]
add edx, dword [ebx + 0x1c]
cmp eax, edx
jg 0x434692
mov edx, dword [ebp + 0xc]
sub ecx, eax
test ecx, ecx
mov dword [edx], 0
jle 0x4346f6
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00413ef0
cmp eax, 0xffffffff
je 0x4348b7
test eax, eax
je 0x4346d4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], 0x80
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3d0]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov edi, eax
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x9c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x144]
mov dword [ebp - 0xb0], eax
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [edi + 0x14c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [edi + 0x138]
sub esp, 0x18
test ecx, ecx
mov dword [edi + 0x13c], eax
je 0x434911
cmp eax, 3
jle 0x43494b
mov edi, dword [ebp - 0xac]
mov esi, dword [edi + 0x14c]
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 8
or edx, ecx
movzx ecx, dx
cmp dx, 4
mov dword [edi + 0xc], ecx
je 0x434891
jbe 0x4347fc
cmp dx, 5
je 0x434973
cmp dx, 6
jne 0x4349ae
lea edi, [esi + 2]
mov esi, dword [ebp - 0xac]
lea eax, [edi + eax - 2]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc0], ebx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx]
mov dword [esi + 0x144], 0x200
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb0], edi
jbe 0x4349d1
mov ebx, dword [ebp - 0xb0]
mov dword [esp + 4], 0
mov dword [esp], edi
sub ebx, edi
mov dword [esp + 8], ebx
call sub.msvcrt.dll_memchr
mov esi, eax
sub esi, edi
test eax, eax
cmove esi, ebx
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x4349e0
mov edx, ebx
sub edx, ecx
add ecx, edi
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], ecx
call sub.msvcrt.dll_memchr
mov ecx, dword [ebp - 0xb8]
mov edx, eax
sub edx, ecx
test eax, eax
mov ecx, edx
mov edx, dword [ebp - 0xbc]
cmovne edx, ecx
lea edx, [esi + edx + 2]
cmp ebx, edx
mov dword [ebp - 0xb8], edx
jb 0x4349e0
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0xb8]
add edx, edi
mov ebx, edx
lea esi, [edi + eax + 1]
je 0x4349e0
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], str.got_option__s__value__s__n
mov dword [esp], eax
call fcn.00416500
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 4], str.blksize
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00410730
test eax, eax
je 0x434760
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_strtol
test eax, eax
je 0x434a74
cmp eax, 0xffb8
jg 0x434a4c
cmp eax, 7
jle 0x434a24
mov edi, dword [ebp - 0xac]
mov edx, dword [edi + 0x148]
cmp eax, edx
jg 0x434a00
mov edi, dword [ebp - 0xac]
mov dword [edi + 0x144], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], str.requested
mov dword [esp + 8], str.blksize_parsed_from_OACK
mov dword [esp + 4], str._s___d___s___d__n
mov dword [esp], eax
call fcn.00416500
mov edi, ebx
jmp 0x434520
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_time
mov eax, dword [ebx + 0x28]
sub eax, dword [ebp - 0x98]
mov esi, dword [ebp + 0xc]
test eax, eax
mov dword [esi], 0
jle 0x4346f6
mov edx, 7
mov eax, ebx
call fcn.00433f80
test eax, eax
jne 0x4346d6
xor eax, eax
mov edi, dword [ebp + 0xc]
cmp dword [ebx], 3
sete al
test eax, eax
mov dword [edi], eax
jne 0x434713
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], 0xffffff9d
mov dword [ebx], 3
mov dword [eax], 0
mov dword [esp], edi
mov dword [esp + 4], str.TFTP_response_timeout
call fcn.00416580
lea esp, [ebp - 0xc]
mov eax, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.00441100
jmp 0x4346d4
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 4], str.tsize
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00410730
test eax, eax
je 0x43468b
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_strtol
mov dword [esp + 8], str.tsize_parsed_from_OACK
mov dword [esp + 4], str._s___ld__n
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.00416500
mov eax, dword [ebp - 0xb4]
mov edx, dword [eax + 0x344]
test edx, edx
jne 0x43468b
test edi, edi
je 0x434aa6
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], edi
sar edi, 0x1f
mov dword [esp + 8], edi
mov edi, ebx
mov dword [esp], eax
call fcn.00424090
jmp 0x434520
cmp dx, 3
jne 0x4349ae
cmp eax, 4
je 0x434891
mov edi, dword [ebp - 0xac]
movzx ecx, byte [esi + 2]
movzx edx, word [edi + 0x30]
shl ecx, 8
lea edi, [edx + 1]
movzx edx, byte [esi + 3]
or edx, ecx
cmp dx, di
jne 0x434891
sub eax, 4
add esi, 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004167f0
test eax, eax
mov esi, eax
jne 0x434a8f
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb4]
mov eax, dword [eax + 0x13c]
mov dword [ebp - 0xb0], eax
sub eax, 4
cdq
add eax, dword [edi + 0x70]
adc edx, dword [edi + 0x74]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.00424050
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004240f0
test eax, eax
jne 0x4348f7
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00433f80
test eax, eax
je 0x4346c3
jmp 0x4346d6
mov esi, esi
lea edi, [edi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413750
mov dword [esp + 4], 0x46a7aa
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00416580
xor eax, eax
mov dword [ebx + 0xc], 5
jmp 0x4346d6
mov eax, dword [ebp - 0xac]
mov edx, 5
call fcn.00433f80
mov eax, 0x2a
jmp 0x4346d6
mov edi, dword [ebp - 0xac]
mov edx, dword [ebp - 0x9c]
mov dword [esp + 4], esi
mov eax, edi
add eax, 0xb8
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x138], eax
mov eax, dword [edi + 0x13c]
jmp 0x4344a7
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], str.Received_too_short_packet
mov dword [esp], eax
call fcn.00416580
mov eax, dword [ebp - 0xac]
mov dword [eax + 0xc], 7
jmp 0x4348a0
movzx edx, byte [esi + 2]
add esi, 4
movzx eax, byte [esi - 1]
mov edi, dword [ebp - 0xac]
shl edx, 8
or eax, edx
movzx eax, ax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x46a860
mov dword [esp], eax
call fcn.00416500
jmp 0x434891
mov eax, dword [ebp - 0xb4]
mov dword [esp + 8], str.Internal_error:_Unexpected_packet
mov dword [esp + 4], 0x46a7aa
mov dword [esp], eax
call fcn.00416580
jmp 0x434891
mov ebx, dword [ebp - 0xc0]
jmp 0x434891
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], str.Malformed_ACK_packet__rejecting
mov dword [esp], eax
call fcn.00416580
mov eax, 0x47
jmp 0x4346d6
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 8], str.server_requested_blksize_larger_than_allocated
mov dword [esp + 4], str._s___ld_
mov dword [esp], eax
call fcn.00416580
jmp 0x4349f6
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0xc], 8
mov dword [esp + 8], str.blksize_is_smaller_than_min_supported
mov dword [esp + 4], str._s___d_
mov dword [esp], eax
call fcn.00416580
jmp 0x4349f6
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0xc], 0xffb8
mov dword [esp + 8], str.blksize_is_larger_than_max_supported
mov dword [esp + 4], str._s___d_
mov dword [esp], eax
call fcn.00416580
jmp 0x4349f6
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], str.invalid_blocksize_value_in_OACK_packet
mov dword [esp], eax
call fcn.00416580
jmp 0x4349f6
mov eax, dword [ebp - 0xac]
mov edx, 5
call fcn.00433f80
mov eax, esi
jmp 0x4346d6
mov dword [esp + 8], esi
mov dword [esp + 4], str.invalid_tsize__:_s:__value_in_OACK_packet
mov dword [esp], eax
call fcn.00416580
jmp 0x4349f6