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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x46f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, str.octet
mov eax, str.netascii
push 3
mov edi, dword [esi + 0x10]
cmp byte [edi + 0xd3c], bl
cmove eax, ecx
mov dword [ebp - 0x14c], eax
pop ecx
sub edx, ebx
je 0x437a11
sub edx, ecx
je 0x437a0b
sub edx, 1
je 0x4379ff
sub edx, 1
je 0x4379f8
sub edx, 1
je 0x4379df
sub edx, 1
je 0x437a11
push str.tftp_send_first:_internal_error
push edi
call fcn.0041d6ad
pop ecx
jmp 0x437d47
mov ecx, esi
push 6
pop edx
cmp byte [edi + 0x721], bl
jne 0x437a04
call fcn.0043793f
mov ebx, eax
jmp 0x437d48
mov dword [esi], ecx
jmp 0x437d48
push 4
pop edx
mov ecx, esi
call fcn.00437905
jmp 0x4379f1
mov edx, ecx
mov ecx, esi
jmp 0x4379ec
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x437a2c
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], ecx
jmp 0x437d4a
mov eax, dword [esi + 0x14c]
cmp byte [edi + 0x721], bl
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
je 0x437a7b
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14c]
add ecx, 4
mov dword [eax + 0x130], ecx
mov ecx, dword [edi + 0xc60]
mov eax, ecx
mov edx, dword [edi + 0xc64]
and eax, edx
cmp eax, 0xffffffff
je 0x437a7f
push edx
push ecx
mov ecx, edi
call fcn.0042faf9
add esp, 8
jmp 0x437a7f
mov byte [eax + 1], 1
push 4
lea eax, [ebp - 0x150]
xor edx, edx
push 0
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0xc98]
inc ecx
call fcn.00412813
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x437d48
mov edx, dword [ebp - 0x150]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x437ab1
sub edx, ecx
mov ecx, dword [ebp - 0x14c]
lea eax, [ecx + 1]
mov dword [ebp - 0x154], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437ac9
sub ecx, dword [ebp - 0x154]
mov eax, dword [esi + 0x13c]
sub eax, ecx
mov ecx, dword [ebp - 0x14c]
sub eax, 4
cmp edx, eax
jbe 0x437b17
push str.TFTP_file_name_too_long
push edi
call fcn.0041d6ad
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop ecx
push dword [ebp - 0x150]
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
push 0x47
pop eax
jmp 0x437d4a
mov eax, dword [esi + 0x14c]
push 0
push ecx
push 0
push dword [ebp - 0x150]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x13c]
push eax
call fcn.0041201d
mov edx, dword [ebp - 0x150]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x437b48
sub edx, ecx
mov ecx, dword [ebp - 0x14c]
lea eax, [ecx + 1]
mov dword [ebp - 0x154], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437b60
sub ecx, dword [ebp - 0x154]
lea eax, [edx + 4]
add eax, ecx
cmp byte [edi + 0x707], 0
mov dword [ebp - 0x14c], eax
jne 0x437ce2
cmp byte [edi + 0x721], 0
je 0x437bba
mov ecx, dword [edi + 0xc60]
mov eax, ecx
mov edx, dword [edi + 0xc64]
and eax, edx
cmp eax, 0xffffffff
je 0x437bba
push edx
push ecx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0041201d
add esp, 0x14
jmp 0x437bc4
mov ax, word [0x458318]
mov word [ebp - 0x48], ax
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
mov ecx, esi
push str.tsize
push eax
call fcn.004378a6
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x437c0d
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
push eax
call fcn.004378a6
pop ecx
pop ecx
mov ebx, eax
push dword [esi + 0x140]
lea eax, [ebp - 0x48]
push 0x457160
push 0x40
push eax
call fcn.0041201d
add esp, 0x10
test ebx, ebx
jne 0x437c73
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
mov ecx, esi
push str.blksize
push eax
call fcn.004378a6
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x437c73
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
push eax
call fcn.004378a6
pop ecx
pop ecx
mov ebx, eax
push dword [esi + 0x1c]
lea eax, [ebp - 0x48]
push 0x457160
push 0x40
push eax
call fcn.0041201d
add esp, 0x10
test ebx, ebx
jne 0x437cd8
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
mov ecx, esi
push str.timeout
push eax
call fcn.004378a6
pop ecx
pop ecx
test eax, eax
jne 0x437cd8
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
mov eax, dword [esi + 0x14c]
lea edx, [ebp - 0x14c]
add eax, dword [ebp - 0x14c]
push eax
call fcn.004378a6
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x437ce2
push str.TFTP_buffer_too_small_for_options
jmp 0x437af0
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x48]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x14c]
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp - 0x14c]
je 0x437d31
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x148]
mov ecx, eax
call fcn.0041a0b8
pop ecx
push eax
push 0x45fe94
push edi
call fcn.0041d6ad
add esp, 0xc
push dword [ebp - 0x150]
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ca6
leave
ret