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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x318]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp + 8]
add ecx, 0x80
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0x80
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x13c]
add edx, 4
push edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x134], eax
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x130], 0
jne 0x4b1372
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
add edx, 0xb0
push edx
call fcn.005f31f0
add esp, 0xc
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x130], ecx
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x134], 4
jge 0x4b13a4
push str.Received_too_short_packet
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0xc], 7
jmp 0x4b1606
mov edx, dword [ebp - 0x88]
add edx, 0x148
push edx
call fcn.004b0d70
add esp, 4
mov word [ebp - 0xa0], ax
movzx eax, word [ebp - 0xa0]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
sub ecx, 3
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 3
ja case.default.0x4b1401
mov edx, dword [ebp - 0x90]
jmp dword [edx*4 + 0x4b161c]
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x134], 4
jle 0x4b14ec
mov ecx, dword [ebp - 0x88]
movzx esi, word [ecx + 0x144]
add esi, 1
and esi, 0xffff
mov edx, dword [ebp - 0x88]
add edx, 0x148
push edx
call fcn.004b0d40
add esp, 4
movzx eax, ax
cmp esi, eax
jne 0x4b14ec
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x134]
sub edx, 4
push edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x148]
add ecx, 4
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00487760
add esp, 0x10
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x4b14aa
push 5
mov eax, dword [ebp - 0x88]
push eax
call fcn.004b2200
add esp, 8
mov eax, dword [ebp - 0x8c]
jmp 0x4b160c
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx + 0x134]
sub eax, 4
cdq
mov ecx, dword [ebp - 0x98]
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [edx + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049dfd0
add esp, 0xc
jmp 0x4b15de
mov eax, dword [ebp - 0x88]
add eax, 0x148
push eax
call fcn.004b0d40
add esp, 4
mov word [ebp - 0x9c], ax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x148]
add edx, 4
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x134]
sub ecx, 4
mov dword [ebp - 0xa4], ecx
movzx edx, word [ebp - 0x9c]
mov eax, dword [ebp - 0x88]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.004b23d0
add esp, 8
cmp eax, dword [ebp - 0xa4]
jae 0x4b157c
mov eax, dword [ebp - 0xa8]
push eax
push str.TFTP_error:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0xc
jmp 0x4b15de
jmp 0x4b15de
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x134]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x148]
add edx, 2
push edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.004b0fd0
add esp, 0xc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x4b15c6
mov eax, dword [ebp - 0x8c]
jmp 0x4b160c
jmp 0x4b15de
push str.Internal_error:_Unexpected_packet
push 0x62cd70
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.0049e4d0
add esp, 4
test eax, eax
je 0x4b1606
push 5
mov eax, dword [ebp - 0x88]
push eax
call fcn.004b2200
add esp, 8
mov eax, 0x2a
jmp 0x4b160c
mov eax, dword [ebp - 0x8c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret