Function at 0x52eb10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
push edi
mov eax, dword [esi + 0x10]
xor ebp, ebp
mov ebx, dword [eax]
mov ecx, str.octet
mov eax, dword [ebx + 0xa9c]
test eax, 0x800
mov edi, str.netascii
cmove edi, ecx
mov ecx, dword [esp + 0xa4]
cmp ecx, 7
ja case.0x52eb5e.1
jmp dword [ecx*4 + 0x52ee68]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x52eb84
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
xor eax, eax
jmp 0x52ee4e
mov eax, dword [esi + 0x160]
test dword [ebx + 0xa9c], 0x20000000
mov byte [eax], 0
mov eax, dword [esi + 0x160]
je 0x52ebd9
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
mov eax, dword [eax]
add ecx, 4
mov dword [eax + 0x158], ecx
mov edx, dword [ebx + 0xf38]
mov ecx, dword [ebx + 0xf3c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x52ebdd
push ecx
push edx
push ebx
call fcn.00525f00
add esp, 0xc
jmp 0x52ebdd
mov byte [eax + 1], 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x10]
push 0
mov eax, dword [eax]
mov eax, dword [eax + 0xf70]
inc eax
push eax
push ebx
call fcn.00508c80
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x52ee4c
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52ec10
sub ecx, edx
mov edx, edi
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x52ec22
sub edx, dword [esp + 0x14]
mov eax, dword [esi + 0x154]
sub eax, edx
sub eax, 4
cmp ecx, eax
jbe 0x52ec5e
push str.TFTP_file_name_too_long_n
push ebx
call fcn.00517c40
push dword [esp + 0x18]
call dword [0x5ca754]
add esp, 0xc
mov eax, 0x47
jmp 0x52ee4e
mov eax, dword [esi + 0x160]
push 0
push edi
push 0
push dword [esp + 0x1c]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.0051a980
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
lea edx, [ecx + 1]
jmp 0x52ec90
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52ec90
sub ecx, edx
lea edx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x52eca0
mov eax, dword [ebx + 0xa9c]
sub edi, edx
add edi, 4
add edi, ecx
test al, 8
jne 0x52edb5
test eax, 0x20000000
je 0x52ecf0
mov edx, dword [ebx + 0xf38]
mov ecx, dword [ebx + 0xf3c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x52ecf0
push ecx
push edx
push str._I64d
lea eax, [esp + 0x24]
push 0x40
push eax
call fcn.0051a980
add esp, 0x14
jmp 0x52ecfa
mov eax, 0x30
mov word [esp + 0x18], ax
mov eax, dword [esi + 0x160]
push str.tsize
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
add edi, eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
push dword [esi + 0x158]
add edi, eax
push 0x55a75c
lea eax, [esp + 0x40]
push 0x40
push eax
call fcn.0051a980
mov eax, dword [esi + 0x160]
push str.blksize
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
add edi, eax
add esp, 0x40
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
push dword [esi + 0x1c]
add edi, eax
push 0x55a75c
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.0051a980
mov eax, dword [esi + 0x160]
push str.timeout
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
add edi, eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
push edi
push esi
call fcn.0052e2c0
add esp, 0x40
add edi, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x52edfc
push 0x80
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00504ec0
push eax
push 0x55a8e4
push ebx
call fcn.00517c40
add esp, 0x18
push dword [esp + 0x10]
call dword [0x5ca754]
add esp, 4
jmp 0x52ee4c
push 6
push esi
test eax, 0x20000000
je 0x52ee2d
call fcn.0052e280
mov ebp, eax
jmp 0x52ee49
push 4
push esi
call fcn.0052e280
mov ebp, eax
jmp 0x52ee49
push 3
push esi
call fcn.0052e240
mov ebp, eax
jmp 0x52ee49
mov dword [esi], 3
jmp 0x52ee4c
push str.tftp_send_first:_internal_error
push ebx
call fcn.00517c40
add esp, 8
mov eax, ebp
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x8c
ret
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x52f010
jmp dword [edx*4 + 0x52f064]
mov dword [esp + 4], ecx
jmp 0x52eb10
mov dword [esp + 4], ecx
jmp fcn.0052e7c0
mov dword [esp + 4], ecx
jmp fcn.0052f230
push str.TFTP_finished
push 0x55da64
push eax
call fcn.00517d30
add esp, 0xc
xor eax, eax
ret
push str.Internal_state_machine_error
push 0x55a8e4
push eax
call fcn.00517c40
add esp, 0xc
mov eax, 0x47
ret