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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, str.octet
push edi
mov edi, str.netascii
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
cmp byte [ebx + 0x2bb], 0
cmove edi, ecx
cmp edx, 7
ja case.0x4542e7.1
jmp dword [edx*4 + 0x454664]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x454319
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x160]
cmp byte [ebx + 0x2c9], 0
mov byte [eax], 0
mov eax, dword [esi + 0x160]
je 0x45436c
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 + 0x10c], ecx
mov edx, dword [ebx + 0x8648]
mov eax, edx
mov ecx, dword [ebx + 0x864c]
and eax, ecx
cmp eax, 0xffffffff
je 0x454370
push ecx
push edx
mov ecx, ebx
call fcn.0044de30
add esp, 8
jmp 0x454370
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x50], 0
mov eax, dword [eax]
mov edx, dword [eax + 0x8624]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
inc edx
push eax
push 0
call fcn.00459080
add esp, 0x10
test eax, eax
jne 0x4545cc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4545cc
push 0
push edi
push 0
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.004506b0
mov ecx, dword [ebp - 0x50]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4543d3
sub ecx, edx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4543e0
sub edi, edx
add edi, 4
add edi, ecx
cmp byte [ebx + 0x2c9], al
je 0x454422
mov edx, dword [ebx + 0x8648]
mov eax, edx
mov ecx, dword [ebx + 0x864c]
and eax, ecx
cmp eax, 0xffffffff
je 0x454422
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004506b0
add esp, 0x14
jmp 0x45442b
mov eax, 0x30
mov word [ebp - 0x48], ax
mov ecx, dword [esi + 0x160]
lea eax, [edi + 6]
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x454442
xor eax, eax
jmp 0x45444c
mov edx, str.tsize
call fcn.00454200
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454460
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x45447a
xor eax, eax
jmp 0x454485
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00454200
push dword [esi + 0x158]
add edi, eax
lea eax, [ebp - 0x48]
push 0x4eb380
push 0x40
push eax
call fcn.004506b0
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x4544b7
xor eax, eax
jmp 0x4544c1
mov edx, str.blksize
call fcn.00454200
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4544d4
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x4544ee
xor eax, eax
jmp 0x4544f9
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00454200
push dword [esi + 0x1c]
add edi, eax
lea eax, [ebp - 0x48]
push 0x4eb380
push 0x40
push eax
call fcn.004506b0
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x454528
xor eax, eax
jmp 0x454532
mov edx, str.timeout
call fcn.00454200
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454545
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x45455f
xor eax, eax
jmp 0x45456a
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00454200
add edi, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
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 0x4545ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.004647f0
push eax
push 0x4f0cf0
push ebx
call fcn.004437f0
add esp, 0xc
push dword [ebp - 0x50]
call dword [0x5007b0]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x2c9], 0
mov edx, 6
mov ecx, esi
je 0x45462c
call fcn.00454230
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, esi
call fcn.00454230
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov edx, 3
mov ecx, esi
call fcn.00454270
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.004437f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret