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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov ecx, str.netascii
push 3
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, str.octet
cmp dword [edi + 0x2a4], ebx
cmovne eax, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
pop ecx
sub eax, ebx
je 0x4381fd
sub eax, ecx
je 0x4381f4
sub eax, 1
je 0x4381ef
sub eax, 1
je 0x4381e8
sub eax, 1
je 0x4381d0
sub eax, 1
je 0x4381fd
push str.tftp_send_first:_internal_error
push edi
call fcn.0042afb4
pop ecx
jmp 0x438440
push 6
push esi
cmp dword [edi + 0x2dc], ebx
je 0x4381f6
call fcn.004377bb
pop ecx
mov ebx, eax
jmp 0x438440
mov dword [esi], ecx
jmp 0x438441
push 4
push esi
jmp 0x4381db
push ecx
push esi
call fcn.0043777f
jmp 0x4381e0
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x438218
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], ecx
jmp 0x438443
mov eax, dword [esi + 0x160]
cmp dword [edi + 0x2dc], ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x438268
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0xdc], ecx
mov ecx, dword [edi + 0x1b0]
mov eax, ecx
mov edx, dword [edi + 0x1b4]
and eax, edx
cmp eax, 0xffffffff
je 0x43826c
push edx
push ecx
push edi
call fcn.00434ae8
add esp, 0xc
jmp 0x43826c
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x8638]
inc eax
push eax
push edi
call fcn.0043e668
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x438293
push 0x1b
pop eax
jmp 0x438443
push ebx
push dword [ebp - 0x48]
push ebx
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.0042c8e8
mov edx, dword [ebp - 0x4c]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4382bc
sub edx, ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4382ce
sub ecx, dword [ebp - 0x48]
add ecx, 4
add ecx, edx
mov dword [ebp - 0x48], ecx
cmp dword [edi + 0x2dc], ebx
je 0x43831a
mov edx, dword [edi + 0x1b0]
mov eax, edx
and eax, dword [edi + 0x1b4]
cmp eax, 0xffffffff
je 0x43831a
push dword [edi + 0x1b4]
lea eax, [ebp - 0x44]
push edx
push str._lld
push 0x40
push eax
call fcn.0042c8e8
mov ecx, dword [ebp - 0x48]
add esp, 0x14
jmp 0x438321
push 0x30
pop eax
mov word [ebp - 0x44], ax
mov eax, dword [esi + 0x160]
push str.tsize
add eax, ecx
push eax
push ecx
push esi
call fcn.00437a9c
mov ecx, dword [ebp - 0x48]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x48], ecx
push eax
push ecx
push esi
call fcn.00437a9c
push dword [esi + 0x158]
add dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push 0x48d404
push 0x40
push eax
call fcn.0042c8e8
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x48]
add eax, ecx
push str.blksize
push eax
push ecx
push esi
call fcn.00437a9c
mov ecx, dword [ebp - 0x48]
add esp, 0x40
add ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], ecx
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
push eax
push ecx
push esi
call fcn.00437a9c
push dword [esi + 0x1c]
add dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push 0x48d404
push 0x40
push eax
call fcn.0042c8e8
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x48]
add eax, ecx
push str.timeout
push eax
push ecx
push esi
call fcn.00437a9c
mov ecx, dword [ebp - 0x48]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x48], ecx
push eax
push ecx
push esi
call fcn.00437a9c
mov ecx, dword [ebp - 0x48]
add esp, 0x40
add ecx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], ecx
mov eax, dword [eax + 0x3c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
push ecx
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp - 0x48]
je 0x438437
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0042e26a
push eax
push 0x48d52c
push edi
call fcn.0042afb4
add esp, 0x14
push dword [ebp - 0x4c]
call dword [0x491004]
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449be1
mov esp, ebp
pop ebp
ret