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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, str.netascii
mov edi, str.octet
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14c], edx
cmp byte [edx + 0xd96], bl
cmovne edi, eax
mov eax, dword [ebp + 0xc]
cmp eax, 7
ja case.0x54e073.1
jmp dword [eax*4 + 0x54e508]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x54e0a5
pop edi
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], 3
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
cmp byte [edx + 0xd9c], bl
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
je 0x54e0f3
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14c]
add ecx, 4
mov dword [eax + 0x120], ecx
mov ebx, dword [edx + 0xca8]
mov eax, ebx
mov ecx, dword [edx + 0xcac]
and eax, ecx
cmp eax, 0xffffffff
je 0x54e0f7
push ecx
push ebx
push edx
call fcn.00533700
add esp, 0xc
jmp 0x54e0f7
mov byte [eax + 1], 1
push 4
push 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [esi + 0x10]
push 0
mov eax, dword [eax + 0xcd4]
inc eax
push eax
call fcn.00551760
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x54e4f3
mov ecx, dword [ebp - 0x148]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e130
sub ecx, edx
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp - 0x150], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x54e144
sub edx, dword [ebp - 0x150]
mov eax, dword [esi + 0x13c]
sub eax, edx
sub eax, 4
cmp ecx, eax
jbe 0x54e195
push str.TFTP_file_name_too_long
push dword [ebp - 0x14c]
call fcn.005245a0
push dword [ebp - 0x148]
call dword [0x7192f4]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
push 0
push edi
push 0
push dword [ebp - 0x148]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x13c]
push eax
call sym.updateself.exe_curl_msnprintf
mov ecx, dword [ebp - 0x148]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e1c6
sub ecx, edx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x54e1d2
mov eax, dword [ebp - 0x14c]
sub edi, edx
add edi, 4
add edi, ecx
cmp byte [eax + 0x6c0], 0
jne 0x54e3fa
cmp byte [eax + 0xd9c], 0
je 0x54e228
mov edx, dword [eax + 0xca8]
mov ecx, dword [eax + 0xcac]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x54e228
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x14
jmp 0x54e231
mov eax, 0x30
mov word [ebp - 0x44], ax
lea ebx, [edi + 6]
cmp ebx, dword [esi + 0x13c]
jbe 0x54e243
mov ebx, 0x47
jmp 0x54e2b2
mov ecx, dword [esi + 0x14c]
mov edx, str.tsize
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e250
lea ecx, [ebp - 0x44]
mov edi, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e266
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x13c]
jbe 0x54e283
mov ebx, 0x47
jmp 0x54e2b2
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, edi
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e290
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e2a4
sub ecx, edx
inc edi
add edi, ecx
xor ebx, ebx
push dword [esi + 0x140]
lea eax, [ebp - 0x44]
push 0x6840a0
push 0x40
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x10
test ebx, ebx
jne 0x54e352
lea ebx, [edi + 8]
cmp ebx, dword [esi + 0x13c]
jbe 0x54e2e5
mov ebx, 0x47
jmp 0x54e352
mov ecx, dword [esi + 0x14c]
mov edx, str.blksize
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e2f2
lea ecx, [ebp - 0x44]
mov edi, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e308
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x13c]
jbe 0x54e325
mov ebx, 0x47
jmp 0x54e352
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e330
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e344
sub ecx, edx
inc edi
add edi, ecx
xor ebx, ebx
push dword [esi + 0x1c]
lea eax, [ebp - 0x44]
push 0x6840a0
push 0x40
push eax
call sym.updateself.exe_curl_msnprintf
add esp, 0x10
test ebx, ebx
jne 0x54e46b
lea ebx, [edi + 8]
cmp ebx, dword [esi + 0x13c]
ja 0x54e46b
mov ecx, dword [esi + 0x14c]
mov edx, str.timeout
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e390
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e3a4
sub ecx, edx
lea eax, [ebx + 1]
add eax, ecx
cmp eax, dword [esi + 0x13c]
ja 0x54e46b
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, ebx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x54e3d0
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e3e4
mov eax, dword [ebp - 0x14c]
lea edi, [ebx + 1]
sub ecx, edx
add edi, ecx
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x44]
push dword [eax + 0xc]
add eax, 0x10
push eax
push 0
push edi
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x54e449
push 0x100
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00536820
push eax
push 0x6840c0
push dword [ebp - 0x14c]
call fcn.005245a0
add esp, 0x18
push dword [ebp - 0x148]
call dword [0x7192f4]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push str.TFTP_buffer_too_small_for_options
push dword [ebp - 0x14c]
call fcn.005245a0
push dword [ebp - 0x148]
call dword [0x7192f4]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push 6
push esi
cmp byte [edx + 0xd9c], bl
je 0x54e4c3
call fcn.0054d850
mov ebx, eax
jmp 0x54e4f0
push 4
push esi
call fcn.0054d850
mov ebx, eax
jmp 0x54e4f0
push 3
push esi
call fcn.0054d810
mov ebx, eax
jmp 0x54e4f0
pop edi
mov dword [esi], 3
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push edx
call fcn.005245a0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret